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

This commit is contained in:
Georg Lukas 2020-04-04 13:21:40 +02:00
parent 01a1d4441e
commit eaa544e1eb

View file

@ -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):
"""