diff options
author | dail8859 <dail8859@yahoo.com> | 2020-12-23 15:42:56 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-23 15:42:56 -0500 |
commit | 5e7b302776cfe476047d0bb29c5f64fe1ed47bbe (patch) | |
tree | 0957bf7bfcb7f71b5882d627e605960e440216c5 | |
parent | Remove ConnectionInfo after socket is destroyed (diff) | |
download | singleapplication-5e7b302776cfe476047d0bb29c5f64fe1ed47bbe.tar.xz |
Update singleapplication_p.cpp
Co-authored-by: Hennadii Chernyshchyk <genaloner@gmail.com>
-rw-r--r-- | singleapplication_p.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/singleapplication_p.cpp b/singleapplication_p.cpp index 70edaae..e65bd95 100644 --- a/singleapplication_p.cpp +++ b/singleapplication_p.cpp @@ -331,8 +331,7 @@ void SingleApplicationPrivate::slotConnectionEstablished() QObject::connect(nextConnSocket, &QLocalSocket::disconnected, nextConnSocket, &QLocalSocket::deleteLater); QObject::connect(nextConnSocket, &QLocalSocket::destroyed, - [nextConnSocket, this](QObject *obj){ - Q_UNUSED(obj) + [nextConnSocket, this](){ connectionMap.remove(nextConnSocket); } ); |