Commit eaa544e1 authored by ge0rg's avatar ge0rg

only auto-reconnect if not already reconnecting, needs slixmpp!37

parent 01a1d444
......@@ -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):
"""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment