Commit 7ee24189 authored by Volker Krause's avatar Volker Krause
Browse files

Disconnect rather than reconnect when not ignoring SSL errors

Reconnecting makes no sense, we'll just end up with the SSL error dialog
again and again in that case.

Not enough to fix 423424 by itself, but a necessary prerequisite.

CCBUG: 423424
parent 312cc19e
Pipeline #86419 skipped
......@@ -308,11 +308,8 @@ void SessionThread::doSslErrorHandlerResponse(bool response)
Q_EMIT encryptionNegotiationResult(true, m_socket->sessionProtocol());
} else {
m_encryptedMode = false;
// reconnect in unencrypted mode, so new commands can be issued
Q_EMIT socketError(QAbstractSocket::SslInvalidUserDataError);
m_socket->disconnectFromHost();
m_socket->waitForDisconnected();
m_socket->connectToHost(m_hostName, m_port);
Q_EMIT encryptionNegotiationResult(false, QSsl::UnknownProtocol);
}
}
......
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