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:
parent
360570cf2d
commit
0f1978a53b
1 changed files with 1 additions and 1 deletions
|
@ -226,6 +226,7 @@ class GajimCore:
|
||||||
con.setDisconnectHandler(self.disconnectedCB)
|
con.setDisconnectHandler(self.disconnectedCB)
|
||||||
#BUG in jabberpy library : if hostname is wrong : "boucle"
|
#BUG in jabberpy library : if hostname is wrong : "boucle"
|
||||||
if con.auth(name, password, ressource):
|
if con.auth(name, password, ressource):
|
||||||
|
self.connexions[con] = account
|
||||||
con.requestRoster()
|
con.requestRoster()
|
||||||
roster = con.getRoster().getRaw()
|
roster = con.getRoster().getRaw()
|
||||||
if not roster :
|
if not roster :
|
||||||
|
@ -233,7 +234,6 @@ class GajimCore:
|
||||||
self.hub.sendPlugin('ROSTER', account, roster)
|
self.hub.sendPlugin('ROSTER', account, roster)
|
||||||
con.sendInitPresence()
|
con.sendInitPresence()
|
||||||
self.hub.sendPlugin('STATUS', account, 'online')
|
self.hub.sendPlugin('STATUS', account, 'online')
|
||||||
self.connexions[con] = account
|
|
||||||
self.connected[account] = 1
|
self.connected[account] = 1
|
||||||
iq = common.jabber.Iq(type="get")
|
iq = common.jabber.Iq(type="get")
|
||||||
iq._setTag('vCard', common.jabber.NS_VCARD)
|
iq._setTag('vCard', common.jabber.NS_VCARD)
|
||||||
|
|
Loading…
Add table
Reference in a new issue