Commit 0aaca176 authored by Nate Weibley's avatar Nate Weibley

Check for socket nullptr in TCPLink::writeBytes

parent 7f5726e7
...@@ -93,6 +93,9 @@ void TCPLink::writeBytes(const QByteArray data) ...@@ -93,6 +93,9 @@ void TCPLink::writeBytes(const QByteArray data)
#ifdef TCPLINK_READWRITE_DEBUG #ifdef TCPLINK_READWRITE_DEBUG
_writeDebugBytes(data); _writeDebugBytes(data);
#endif #endif
if (!_socket)
return;
_socket->write(data); _socket->write(data);
_logOutputDataRate(data.size(), QDateTime::currentMSecsSinceEpoch()); _logOutputDataRate(data.size(), QDateTime::currentMSecsSinceEpoch());
} }
......
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