Commit 9b80102c authored by Andrea Scarpino's avatar Andrea Scarpino

Show the detailed socket error as debug output

parent e8b6bb35
Pipeline #13263 passed with stages
in 26 minutes and 43 seconds
......@@ -159,6 +159,8 @@ void ClientWorker::onConnectionError(QXmppClient::Error error)
emit disconnReasonChanged(DisconnReason::ConnNotConnected);
}
} else if (error == QXmppClient::SocketError) {
qDebug() << "[client] Socket Error:" << client->socketErrorString();
QAbstractSocket::SocketError sError = client->socketError();
if (sError == QAbstractSocket::ConnectionRefusedError ||
sError == QAbstractSocket::RemoteHostClosedError) {
......
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