Commit f8cd0966 authored by Anael Beutot's avatar Anael Beutot Committed by Antoine Millet
Browse files

Remove on_disconnect callback when stopping the client

parent d3ec367c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -359,7 +359,7 @@ class MainLoop(object):
        # close rpc
        if self.rpc_con is not None:
            # disable callback to prevent trampoline calls
            self.rpc_con._on_disconnect = None   # FIXME doesn't work
            self.rpc_con.rpc._on_disconnect = None
            self.rpc_con.shutdown()
        # close all plugins
        for plugin in self.registered_plugins: