diff --git a/src/comm/TCPLink.cc b/src/comm/TCPLink.cc index 529bfc5..7554a49 100644 --- a/src/comm/TCPLink.cc +++ b/src/comm/TCPLink.cc @@ -93,6 +93,9 @@ void TCPLink::writeBytes(const QByteArray data) #ifdef TCPLINK_READWRITE_DEBUG _writeDebugBytes(data); #endif + if (!_socket) + return; + _socket->write(data); _logOutputDataRate(data.size(), QDateTime::currentMSecsSinceEpoch()); }