update lock logic

This commit is contained in:
Roy Qu 2023-10-21 13:41:53 +08:00
parent eb7c1d0c8f
commit edba9130b1
1 changed files with 1 additions and 2 deletions

View File

@ -295,9 +295,8 @@ int main(int argc, char *argv[])
if (openInSingleInstance) {
int openCount = 0;
while (true) {
if (lockFile.tryLock())
if (lockFile.tryLock(100))
break;
QThread::msleep(100);
openCount++;
if (openCount>100)
break;