Browse Source

Profile locks are only stale if orphaned

Locks used to become stale after 30s of use, they now only become stale if their parent process dies.
pull/2172/head
tux3 10 years ago
parent
commit
30c8980d1b
No known key found for this signature in database
GPG Key ID: 7E086DD661263264
  1. 1
      src/persistence/profilelocker.cpp

1
src/persistence/profilelocker.cpp

@ -49,6 +49,7 @@ bool ProfileLocker::lock(QString profile) @@ -49,6 +49,7 @@ bool ProfileLocker::lock(QString profile)
return true;
QLockFile* newLock = new QLockFile(lockPathFromName(profile));
newLock->setStaleLockTime(0);
if (!newLock->tryLock())
{
delete newLock;

Loading…
Cancel
Save