Commit 854bb0ce authored by mathieui's avatar mathieui

Merge branch 'fix-reconnect' into 'master'

Fix 'disconnected' event handler order for /quit

See merge request poezio/poezio!73
parents 4c3b3e86 7a93017b
......@@ -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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment