summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2020-03-29 16:21:32 +0200
committermathieui <mathieui@mathieui.net>2020-03-29 16:21:32 +0200
commit854bb0cedb151e185b9710937cf04d8757b9f100 (patch)
treef3459c1c53197790ee89b06f8bfc7871c3931484
parent4c3b3e869e281173499fcc41cec73bbf970387e3 (diff)
parent7a93017beb8393621012429cddf08121b397f916 (diff)
downloadpoezio-854bb0cedb151e185b9710937cf04d8757b9f100.tar.gz
poezio-854bb0cedb151e185b9710937cf04d8757b9f100.tar.bz2
poezio-854bb0cedb151e185b9710937cf04d8757b9f100.tar.xz
poezio-854bb0cedb151e185b9710937cf04d8757b9f100.zip
Merge branch 'fix-reconnect' into 'master'
Fix 'disconnected' event handler order for /quit See merge request poezio/poezio!73
-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: