Commit 72890f69 authored by Ulf Hermann's avatar Ulf Hermann
Browse files

QmlDebug: Signal an error if local socket cannot be opened



Change-Id: I61fa544f454e22de45d6a6ef9180a896231662c9
Reviewed-by: Christian Kandeler's avatarChristian Kandeler <christian.kandeler@qt.io>
parent 32b484e2
......@@ -387,7 +387,8 @@ void QmlDebugConnection::startLocalServer(const QString &fileName)
// QueuedConnection so that waitForNewConnection() returns true.
connect(d->server, &QLocalServer::newConnection,
this, &QmlDebugConnection::newConnection, Qt::QueuedConnection);
d->server->listen(fileName);
if (!d->server->listen(fileName))
emit socketError(QAbstractSocket::UnknownSocketError);
}
void QmlDebugConnection::newConnection()
......
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