Commit edb7f6fd authored by Volker Krause's avatar Volker Krause
Browse files

Consider the online state when attempting to reconnect

There's actually a comprehensive error condition handling in the method
above which properly distinguishing between transient and persistent
problems, but we just ignore that decision here and continuously

Together with kimap!9 this
fixes the infinite SSL error dialog loop when rejecting to ignore an SSL
error to a large extend. You still get the dialog twice now, and then
after a few minutes again as this is considered to be a transient error
(e.g. caused by capture portals). This at least gives you the opportunity
now to actually fix the configuration or remove the resource.

CCBUG: 423424

(Bug 423424 remains open for SMTP)
parent db71898d
Pipeline #86447 skipped
......@@ -306,7 +306,7 @@ void ImapResourceBase::onConnectDone(int errorCode, const QString &errorString)
void ImapResourceBase::onConnectionLost(KIMAP::Session * /*session*/)
if (!m_pool->isConnected()) {
if (!m_pool->isConnected() && isOnline()) {
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