Browse Source

deleteLater on _socket

This way the delete happens on the right thread.
QGC4.4
Don Gagne 11 years ago
parent
commit
83a092f348
  1. 2
      src/comm/TCPLink.cc

2
src/comm/TCPLink.cc

@ -199,7 +199,7 @@ bool TCPLink::disconnect() @@ -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();

Loading…
Cancel
Save