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

we can recieve presence before recieving the roster (presence from...

we can recieve presence before recieving the roster (presence from disconnected transport) so self.connexions[con] must exist for presenceCB.
parent 360570cf
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
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