QLocalSocket shouldn't emit disconnected if it isn't connected yet.
Task-number: QTBUG-22082 Change-Id: I2e1dae133f50a232d4be3ff63cafaf1b417b286c Reviewed-by: Peter Hartmann <peter.hartmann@nokia.com>
This commit is contained in:
parent
ebe43992f9
commit
d17b56f42b
@ -100,7 +100,7 @@ void QLocalSocketPrivate::_q_winError(ulong windowsError, const QString &functio
|
||||
|
||||
if (currentState != state) {
|
||||
q->emit stateChanged(state);
|
||||
if (state == QLocalSocket::UnconnectedState)
|
||||
if (state == QLocalSocket::UnconnectedState && currentState != QLocalSocket::ConnectingState)
|
||||
q->emit disconnected();
|
||||
}
|
||||
emit q->error(error);
|
||||
|
Loading…
Reference in New Issue
Block a user