Commit 7b8d3f07 authored by Anael Beutot's avatar Anael Beutot
Browse files

Fix rpc reconnection.

Set rpc_con to False in restart_rpc_connection.
parent 80d4e76d
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -290,6 +290,9 @@ class MainLoop(object):
        if not self.rpc_connected:
            return

        # clear connection
        self.rpc_con = None

        logger.error('Lost connection to the cc-server, will attempt'
                     ' reconnection')

@@ -299,8 +302,6 @@ class MainLoop(object):
        self.reconnect.start()

    def restart_rpc_connection_cb(self, *args):
        # clear connection
        self.rpc_con = None
        # attempt to connect to the cc-server again
        self.connect = RPCStartHandler(self)
        self.connect.start()