summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Lukas <georg@op-co.de>2020-03-23 19:09:40 +0100
committerGeorg Lukas <georg@op-co.de>2020-03-29 16:09:25 +0200
commit7a93017beb8393621012429cddf08121b397f916 (patch)
treefc2373112fbdc08c8e97d999762f7419fc21fb2d
parente4c055a65ea576ca0124fb3bf21868c27eb82b8d (diff)
downloadpoezio-7a93017beb8393621012429cddf08121b397f916.tar.gz
poezio-7a93017beb8393621012429cddf08121b397f916.tar.bz2
poezio-7a93017beb8393621012429cddf08121b397f916.tar.xz
poezio-7a93017beb8393621012429cddf08121b397f916.zip
Fix 'disconnected' event handler order for /quit
-rw-r--r--poezio/core/commands.py2
1 files changed, 1 insertions, 1 deletions
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: