Verified Commit 1d74d67c authored by mathieui's avatar mathieui

Fix wrong DNS resolution when reconnecting

even if custom_host was set, poezio would use the dns records for the
reconnection
parent 74a90dfd
......@@ -947,7 +947,7 @@ def on_disconnected(self, event):
self.information("Disconnected from server.", msg_typ)
if not self.legitimate_disconnect and config.get('auto_reconnect', True):
self.information("Auto-reconnecting.", 'Info')
self.xmpp.connect()
self.xmpp.start()
def on_stream_error(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