From 7a93017beb8393621012429cddf08121b397f916 Mon Sep 17 00:00:00 2001 From: Georg Lukas Date: Mon, 23 Mar 2020 19:09:40 +0100 Subject: Fix 'disconnected' event handler order for /quit --- poezio/core/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poezio/core/commands.py b/poezio/core/commands.py index fca9a705..f3498ed9 100644 --- a/poezio/core/commands.py +++ b/poezio/core/commands.py @@ -1035,9 +1035,9 @@ class CommandCore: self.core.xmpp.plugin['xep_0196'].stop() self.core.save_config() self.core.plugin_manager.disable_plugins() - self.core.disconnect(msg) self.core.xmpp.add_event_handler( "disconnected", self.core.exit, disposable=True) + self.core.disconnect(msg) @command_args_parser.quoted(0, 1, ['']) def destroy_room(self, args: List[str]) -> None: -- cgit v1.2.3