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?
Attachments
For Gerrit Dashboard: QTBUG-50711 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
276478,3 | Clarify Q{Abstract,Local}Socket::waitForDisconnected() documentation | 5.13 | qt/qtbase | Status: MERGED | +2 | 0 |