mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 15:37:26 -06:00
Remove the lockfile on exit (#14997)
This commit is contained in:
@@ -134,6 +134,12 @@ QtLocalPeer::QtLocalPeer(QObject* parent, const QString &appId)
|
||||
lockFile.open(QIODevice::ReadWrite);
|
||||
}
|
||||
|
||||
QtLocalPeer::~QtLocalPeer()
|
||||
{
|
||||
lockFile.unlock();
|
||||
lockFile.remove();
|
||||
}
|
||||
|
||||
bool QtLocalPeer::isClient()
|
||||
{
|
||||
if (lockFile.isLocked())
|
||||
|
||||
Reference in New Issue
Block a user