mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 22:18:05 -06:00
Remove lockfile only when last app instance is destroyed
This commit is contained in:
committed by
Vladimir Golovnev
parent
667d4e4211
commit
144956a209
@@ -134,10 +134,13 @@ QtLocalPeer::QtLocalPeer(QObject* parent, const QString &appId)
|
|||||||
}
|
}
|
||||||
|
|
||||||
QtLocalPeer::~QtLocalPeer()
|
QtLocalPeer::~QtLocalPeer()
|
||||||
|
{
|
||||||
|
if (!isClient())
|
||||||
{
|
{
|
||||||
lockFile.unlock();
|
lockFile.unlock();
|
||||||
lockFile.remove();
|
lockFile.remove();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
bool QtLocalPeer::isClient()
|
bool QtLocalPeer::isClient()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user