From ab90fac4e4c306f47ab0903b33d1b3aacb228c46 Mon Sep 17 00:00:00 2001 From: Javier Date: Fri, 25 Dec 2015 23:33:26 +0100 Subject: destroy agents on disconnection --- notificationconn.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'notificationconn.cc') diff --git a/notificationconn.cc b/notificationconn.cc index 592f3e5..7ac17f8 100644 --- a/notificationconn.cc +++ b/notificationconn.cc @@ -25,6 +25,7 @@ NotificationConn::NotificationConn(SAPConnection *conn, QObject *parent) : QObject(parent), _conn(conn), _socket(conn->getSocket(104)) { connect(_conn, SIGNAL(disconnected()), SLOT(deleteLater())); + connect(_conn, SIGNAL(destroyed()), SLOT(deleteLater())); Q_ASSERT(_socket); connect(_socket, SIGNAL(connected()), SLOT(handleConnected())); connect(_socket, SIGNAL(messageReceived()), SLOT(handleMessageReceived())); -- cgit v1.2.3