Remove lockfile only when last app instance is destroyed

This commit is contained in:
Vladimir Golovnev (Glassez)
2021-06-16 18:14:57 +03:00
committed by Vladimir Golovnev
parent 667d4e4211
commit 144956a209

View File

@@ -134,10 +134,13 @@ QtLocalPeer::QtLocalPeer(QObject* parent, const QString &appId)
}
QtLocalPeer::~QtLocalPeer()
{
if (!isClient())
{
lockFile.unlock();
lockFile.remove();
}
}
bool QtLocalPeer::isClient()
{