diff options
-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 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): """ |