Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment