diff --git a/http/httpsocket.cpp b/http/httpsocket.cpp index 9945e9185..6c5bd51aa 100644 --- a/http/httpsocket.cpp +++ b/http/httpsocket.cpp @@ -484,7 +484,7 @@ void HttpSocket::removedIds(const QSet &ids) bool HttpSocket::write(QTcpSocket *socket, char *buffer, qint32 bytesRead, bool &stop) { - if (bytesRead<0 || terminated) { + if (bytesRead<0 || terminated || !socket) { return false; }