mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-12-25 11:11:20 +00:00
Fix issue with components and roster.
If the roster contained a JID, but not any resource presence data, then an error would occur when accessing self.roster[jid]['presence'].
This commit is contained in:
parent
e2d18170b0
commit
dd41a85efc
1 changed files with 1 additions and 1 deletions
|
@ -614,7 +614,7 @@ class BaseXMPP(XMLStream):
|
|||
'in_roster': False}
|
||||
|
||||
# Alias to simplify some references.
|
||||
connections = self.roster[jid]['presence']
|
||||
connections = self.roster[jid].get('presence', {})
|
||||
|
||||
# Determine if the user has just come online.
|
||||
if not resource in connections:
|
||||
|
|
Loading…
Reference in a new issue