summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Lukas <georg@op-co.de>2020-04-04 13:21:40 +0200
committerGeorg Lukas <georg@op-co.de>2020-04-04 13:24:36 +0200
commiteaa544e1ebd74cae69f75c868ab930608aadbbc1 (patch)
tree0ff976315d574b800a05f2fbf8a3f2d73bf93e45
parent01a1d4441ef6e56afe7f0c6d5d6c3c10acd9d351 (diff)
downloadpoezio-eaa544e1ebd74cae69f75c868ab930608aadbbc1.tar.gz
poezio-eaa544e1ebd74cae69f75c868ab930608aadbbc1.tar.bz2
poezio-eaa544e1ebd74cae69f75c868ab930608aadbbc1.tar.xz
poezio-eaa544e1ebd74cae69f75c868ab930608aadbbc1.zip
only auto-reconnect if not already reconnecting, needs slixmpp!37
-rw-r--r--poezio/core/handlers.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/poezio/core/handlers.py b/poezio/core/handlers.py
index 47915008..4f0e7c32 100644
--- a/poezio/core/handlers.py
+++ b/poezio/core/handlers.py
@@ -1247,8 +1247,9 @@ class HandlerCore:
'conflict', 'host-unknown')):
return
await asyncio.sleep(1)
- self.core.information("Auto-reconnecting.", 'Info')
- self.core.xmpp.start()
+ if not self.core.xmpp.is_connecting() and not self.core.xmpp.is_connected():
+ self.core.information("Auto-reconnecting.", 'Info')
+ self.core.xmpp.start()
async def on_reconnect_delay(self, event):
"""