rbutil: Fix invalid access on error in test.

Change-Id: Ie9c65041bb4a1ba4215a2d0786bf984cfa6d023b
This commit is contained in:
Dominik Riebeling 2021-12-25 17:36:50 +01:00
parent c753d31549
commit 0768705545

View file

@ -98,8 +98,10 @@
socket->close();
m_requestNumber++;
}
if (socket->state() == QTcpSocket::UnconnectedState)
if (socket->state() == QTcpSocket::UnconnectedState) {
delete socket;
break;
}
}
}
void discardClient()