Skip to content
Snippets Groups Projects
Commit 359a6e90 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

improve connection to server that have an IPv6 but jabber server don't listen on that IP.

parent 9912921e
No related branches found
No related tags found
No related merge requests found
......@@ -76,6 +76,9 @@ class NonBlockingClient:
the client.
"""
# to avoid recursive calls
if self.ip_addresses:
self._try_next_ip()
return
if self.disconnecting: return
log.info('Disconnecting NBClient: %s' % message)
......
......@@ -154,6 +154,7 @@ class XMPPDispatcher(PlugIn):
"""
Send an initial stream header
"""
self._owner.Connection.sendqueue = []
self.Stream = simplexml.NodeBuilder()
self.Stream.dispatch = self.dispatch
self.Stream._dispatch_depth = 2
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment