Check socket is not null
This commit is contained in:
committed by
Craig Drummond
parent
8bb167299f
commit
08b32733f7
@@ -484,7 +484,7 @@ void HttpSocket::removedIds(const QSet<qint32> &ids)
|
||||
|
||||
bool HttpSocket::write(QTcpSocket *socket, char *buffer, qint32 bytesRead, bool &stop)
|
||||
{
|
||||
if (bytesRead<0 || terminated) {
|
||||
if (bytesRead<0 || terminated || !socket) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user