improve connection to server that have an IPv6 but jabber server don't listen on that IP.
This commit is contained in:
parent
9912921ec7
commit
359a6e901e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue