Commit f92a971b authored by Anael Beutot's avatar Anael Beutot
Browse files

Fix authentication corner case.

When role changes in a new authentication attempt.
Was missing a method on MainLoop instance to unregister all plugins.
parent e2c637e6
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -286,6 +286,11 @@ class MainLoop(object):

        plugin.stop()

    def close_plugins(self):
        """Unregister all plugins from the loop."""
        for plugin in self.registered_plugins.copy():
            self.unregister_plugin(plugin)

    def restart_rpc_connection(self, *args):
        if not self.rpc_connected:
            return