Commit 83a092f3 authored by Don Gagne's avatar Don Gagne

deleteLater on _socket

This way the delete happens on the right thread.
parent 163383cb
...@@ -199,7 +199,7 @@ bool TCPLink::disconnect() ...@@ -199,7 +199,7 @@ bool TCPLink::disconnect()
if (_socket) if (_socket)
{ {
_socketIsConnected = false; _socketIsConnected = false;
delete _socket; _socket->deleteLater(); // Make sure delete happens on correct thread
_socket = NULL; _socket = NULL;
emit disconnected(); emit disconnected();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment