Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.5.1
-
Windows
-
2d680b27f3c56aacbec3191f38b7b1898c8747b1 (qt/qtbase/5.13)
Description
If one follows the code example in QLocalSocket::waitForDisconnected() and do:
socket->disconnectFromServer(); if (socket->waitForDisconnected(1000)) qDebug("Disconnected!");
It gives an error:
"QLocalSocket::waitForDisconnected() is not allowed in UnconnectedState"
on Windows.
Could it be that the state is changed too early before waitForDisconnected() has returned?