summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Buquet <pep@bouah.net>2020-04-04 15:30:09 +0200
committerMaxime Buquet <pep@bouah.net>2020-04-04 15:30:09 +0200
commitf56ce0b8ff30c37be16efdb7ce21aed3f5abc968 (patch)
tree99f4c35a76e9698b58a5193fae71916e9d45bffc
parentf72b6ed5c160852908fb67df9dae2c471bab63b0 (diff)
parenteaa544e1ebd74cae69f75c868ab930608aadbbc1 (diff)
downloadpoezio-f56ce0b8ff30c37be16efdb7ce21aed3f5abc968.tar.gz
poezio-f56ce0b8ff30c37be16efdb7ce21aed3f5abc968.tar.bz2
poezio-f56ce0b8ff30c37be16efdb7ce21aed3f5abc968.tar.xz
poezio-f56ce0b8ff30c37be16efdb7ce21aed3f5abc968.zip
Merge branch 'sync-fixes' into 'master'
only auto-reconnect if not already reconnecting, needs slixmpp!37 See merge request poezio/poezio!78
-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 c489cc3b..9089cd0c 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):
"""