X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fclientauthhandler.cpp;h=9440419c25fffbaf873dc472f0bd6f00e6de4542;hp=0d24a761b11f95e91a2377c3db5b8cebf0514d65;hb=e7657c44a3720231d89998f74f6369243431f878;hpb=e53fc69a91553b57932ba599b39999d550114588;ds=sidebyside diff --git a/src/client/clientauthhandler.cpp b/src/client/clientauthhandler.cpp index 0d24a761..9440419c 100644 --- a/src/client/clientauthhandler.cpp +++ b/src/client/clientauthhandler.cpp @@ -114,7 +114,9 @@ void ClientAuthHandler::onSocketStateChanged(QAbstractSocket::SocketState socket text = tr("Disconnected"); // Ensure the disconnected() signal is sent even if we haven't reached the Connected state yet. // The baseclass implementation will make sure to only send the signal once. - onSocketDisconnected(); + // However, we do want to prefer a potential socket error signal that may be on route already, so + // give this a chance to overtake us by spinning the loop... + QTimer::singleShot(0, this, SLOT(onSocketDisconnected())); } break; default: