Commit b333b30c authored by Ulf Hermann's avatar Ulf Hermann
Browse files

QmlDebug: Properly close connection on invalid messages



Change-Id: I5411a576bde22193bc997908ca2c87d9660d3ea8
Reviewed-by: default avatarhjk <hjk@qt.io>
Reviewed-by: Christian Kandeler's avatarChristian Kandeler <christian.kandeler@qt.io>
parent 1cc8cd7f
......@@ -194,8 +194,7 @@ void QmlDebugConnection::protocolReadyRead()
if (!validHello) {
qWarning("QML Debug Client: Invalid hello message");
QObject::disconnect(d->protocol, &QPacketProtocol::readyRead,
this, &QmlDebugConnection::protocolReadyRead);
close();
return;
}
d->gotHello = true;
......
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