Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2004-05-25 05:16:02 +0400
committerYann Leboulanger <asterix@lagaule.org>2004-05-25 05:16:02 +0400
commitb5cf353af9452088b4087a774f81c8cc563f92c8 (patch)
tree6991b14e0f14b2c879756b4c57338f6783348539 /core
parent3a91cda882f9cb8383e4bdce884f5f38bebe1a70 (diff)
it is possible to have a disconnectHandler colled during the con.connect() function if jabber server is brocken.
Diffstat (limited to 'core')
-rw-r--r--core/core.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/core.py b/core/core.py
index aab7b17bc..6d0f75711 100644
--- a/core/core.py
+++ b/core/core.py
@@ -204,6 +204,7 @@ 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:
@@ -224,7 +225,6 @@ 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