Merge pull request #133 from mamarley/clientreconnectfix
authorManuel Nickschas <sputnick@quassel-irc.org>
Thu, 8 Oct 2015 21:33:54 +0000 (23:33 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Thu, 8 Oct 2015 21:33:54 +0000 (23:33 +0200)
Keep _wantReconnect set to true by default instead of false

src/client/coreconnection.cpp

index 0e4b4f9..9f876f9 100644 (file)
@@ -216,6 +216,8 @@ void CoreConnection::setState(ConnectionState state)
     if (state != _state) {
         _state = state;
         emit stateChanged(state);
+        if (state == Connected)
+            _wantReconnect = true;
         if (state == Disconnected)
             emit disconnected();
     }