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

revision 153 cause troubles when we disconnect

parent b819f1c9
No related branches found
No related tags found
No related merge requests found
......@@ -204,7 +204,6 @@ class GajimCore:
connection=common.xmlstream.TCP, port=5222, proxy = proxy)
#debug = [common.jabber.DBG_ALWAYS], log = sys.stderr, \
#connection=common.xmlstream.TCP_SSL, port=5223, proxy = proxy)
con.setDisconnectHandler(self.disconnectedCB)
try:
con.connect()
except IOError, e:
......@@ -225,6 +224,7 @@ class GajimCore:
con.registerHandler('message', self.messageCB)
con.registerHandler('presence', self.presenceCB)
con.registerHandler('iq',self.vCardCB,'result')#common.jabber.NS_VCARD)
con.setDisconnectHandler(self.disconnectedCB)
#BUG in jabberpy library : if hostname is wrong : "boucle"
if con.auth(name, password, ressource):
self.connexions[con] = account
......
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