From 0f1978a53b6f87f71a73dd671651503c349d7f18 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Thu, 20 May 2004 15:47:50 +0000 Subject: [PATCH] we can recieve presence before recieving the roster (presence from disconnected transport) so self.connexions[con] must exist for presenceCB. --- core/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core.py b/core/core.py index a076a597b..547b9c81e 100644 --- a/core/core.py +++ b/core/core.py @@ -226,6 +226,7 @@ class GajimCore: con.setDisconnectHandler(self.disconnectedCB) #BUG in jabberpy library : if hostname is wrong : "boucle" if con.auth(name, password, ressource): + self.connexions[con] = account con.requestRoster() roster = con.getRoster().getRaw() if not roster : @@ -233,7 +234,6 @@ class GajimCore: self.hub.sendPlugin('ROSTER', account, roster) con.sendInitPresence() self.hub.sendPlugin('STATUS', account, 'online') - self.connexions[con] = account self.connected[account] = 1 iq = common.jabber.Iq(type="get") iq._setTag('vCard', common.jabber.NS_VCARD)