From 0aaca176660cc6e0a99b5feeee685e1617707037 Mon Sep 17 00:00:00 2001 From: Nate Weibley Date: Fri, 25 Mar 2016 14:26:29 -0400 Subject: [PATCH] Check for socket nullptr in TCPLink::writeBytes --- src/comm/TCPLink.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/comm/TCPLink.cc b/src/comm/TCPLink.cc index 529bfc5e9e..7554a4969d 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()); } -- GitLab