diff options
author | Maxime Buquet <pep@bouah.net> | 2020-04-04 15:30:09 +0200 |
---|---|---|
committer | Maxime Buquet <pep@bouah.net> | 2020-04-04 15:30:09 +0200 |
commit | f56ce0b8ff30c37be16efdb7ce21aed3f5abc968 (patch) | |
tree | 99f4c35a76e9698b58a5193fae71916e9d45bffc | |
parent | f72b6ed5c160852908fb67df9dae2c471bab63b0 (diff) | |
parent | eaa544e1ebd74cae69f75c868ab930608aadbbc1 (diff) | |
download | poezio-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.py | 5 |
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): """ |