From: Manuel Nickschas Date: Tue, 16 Apr 2013 21:06:57 +0000 (+0200) Subject: Finally fix reconnection logic X-Git-Tag: 0.10-beta1~142 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=5d99995ceee2fb9a5291d470e36319319b345276;hp=25473e8428370d3ffc422c1cc50339b361964517 Finally fix reconnection logic Really, that part of the code needs a good old refactoring. --- diff --git a/src/client/coreconnection.cpp b/src/client/coreconnection.cpp index ab42b74c..7112b854 100644 --- a/src/client/coreconnection.cpp +++ b/src/client/coreconnection.cpp @@ -352,7 +352,9 @@ void CoreConnection::disconnectFromCore() void CoreConnection::disconnectFromCore(const QString &errorString, bool wantReconnect) { - if (!wantReconnect) + if (wantReconnect) + _reconnectTimer.start(); + else _reconnectTimer.stop(); _wantReconnect = wantReconnect; // store if disconnect was requested