From 83a092f348a6dc7c5687b456899f618ad9aa6b05 Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Sun, 15 Jun 2014 15:28:46 -0700 Subject: [PATCH] deleteLater on _socket This way the delete happens on the right thread. --- src/comm/TCPLink.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/comm/TCPLink.cc b/src/comm/TCPLink.cc index 9cef75e10..51c222348 100644 --- a/src/comm/TCPLink.cc +++ b/src/comm/TCPLink.cc @@ -199,7 +199,7 @@ bool TCPLink::disconnect() if (_socket) { _socketIsConnected = false; - delete _socket; + _socket->deleteLater(); // Make sure delete happens on correct thread _socket = NULL; emit disconnected(); -- 2.22.0