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)
#ifdef TCPLINK_READWRITE_DEBUG
_writeDebugBytes(data);
#endif
if (!_socket)
return;
_socket->write(data);
_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