Disable stale lock file
This commit is contained in:
parent
bbc635e500
commit
614e1e5a02
@ -20,6 +20,8 @@ namespace service
|
||||
SingleApplication::SingleApplication(const QString &baseName)
|
||||
: lockFile_(fileName(baseName))
|
||||
{
|
||||
lockFile_.setStaleLockTime(0);
|
||||
|
||||
if (!lockFile_.tryLock()) {
|
||||
const auto lockName = fileName(baseName);
|
||||
LERROR() << QObject::tr("Another instance is running. Lock file is busy.")
|
||||
|
Loading…
Reference in New Issue
Block a user