Merge branch 'sync-fixes' into 'master'
only auto-reconnect if not already reconnecting, needs slixmpp!37 See merge request poezio/poezio!78
This commit is contained in:
commit
f56ce0b8ff
1 changed files with 3 additions and 2 deletions
|
@ -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):
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue