summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Lukas <georg@op-co.de>2019-03-26 12:28:41 +0100
committerGeorg Lukas <georg@op-co.de>2019-03-26 12:28:47 +0100
commit46e3dece5e04fd8854596f32266c43083141526b (patch)
tree7a160587bd395a20515641e2df2fdf88c57a6356
parent40f292d998650abc1b25b6bbf94b9c4b6174a3a8 (diff)
downloadpoezio-46e3dece5e04fd8854596f32266c43083141526b.tar.gz
poezio-46e3dece5e04fd8854596f32266c43083141526b.tar.bz2
poezio-46e3dece5e04fd8854596f32266c43083141526b.tar.xz
poezio-46e3dece5e04fd8854596f32266c43083141526b.zip
Only /part tabs on disconnect, not on reconnect
-rw-r--r--poezio/core/core.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/poezio/core/core.py b/poezio/core/core.py
index ed977b6d..cc838541 100644
--- a/poezio/core/core.py
+++ b/poezio/core/core.py
@@ -832,11 +832,11 @@ class Core:
parts of the client (for example, set the MucTabs as not joined, etc)
"""
self.legitimate_disconnect = True
- for tab in self.get_tabs(tabs.MucTab):
- tab.command_part(msg)
if reconnect:
self.xmpp.reconnect(wait=0.0, reason=msg)
else:
+ for tab in self.get_tabs(tabs.MucTab):
+ tab.command_part(msg)
self.xmpp.disconnect(reason=msg)
def send_message(self, msg: str) -> bool: