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

This commit is contained in:
Yann Leboulanger 2010-10-29 11:37:07 +02:00
parent 9912921ec7
commit 359a6e901e
2 changed files with 4 additions and 0 deletions

View File

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

View File

@ -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