we can recieve presence before recieving the roster (presence from disconnected transport) so self.connexions[con] must exist for presenceCB.

This commit is contained in:
Yann Leboulanger 2004-05-20 15:47:50 +00:00
parent 360570cf2d
commit 0f1978a53b
1 changed files with 1 additions and 1 deletions

View File

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