Clean up a lockfile from /tmp on exit. Fixes #4348

This commit is contained in:
David Sansome 2014-05-15 16:19:38 +10:00
parent ff5d23b288
commit a6ac10093c
2 changed files with 6 additions and 0 deletions

View File

@ -209,3 +209,8 @@ void QtLocalPeer::receiveConnection()
emit messageReceived(uMsg); //### (might take a long time to return)
emit messageReceived(QString::fromUtf8(uMsg));
}
QtLocalPeer::~QtLocalPeer ()
{
lockFile.remove();
}

View File

@ -57,6 +57,7 @@ class QtLocalPeer : public QObject
public:
QtLocalPeer(QObject *parent = 0, const QString &appId = QString());
~QtLocalPeer ();
bool isClient();
bool sendMessage(const QString &message, int timeout);
bool sendMessage(const QByteArray &message, int timeout);