From: Manuel Nickschas Date: Tue, 16 Apr 2013 21:06:57 +0000 (+0200) Subject: Finally fix reconnection logic X-Git-Tag: 0.9.0~2 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=e57625c5ddefb03fa4f83b08d3248aea46a79de1 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