mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-12-25 03:00:17 +00:00
Fix another roster issue.
Caused by same issue of a JID being in the roster, but with an incomplete entry.
This commit is contained in:
parent
dd41a85efc
commit
58aa944a5e
1 changed files with 2 additions and 1 deletions
|
@ -640,7 +640,8 @@ class BaseXMPP(XMLStream):
|
|||
log.debug("%s %s got offline" % (jid, resource))
|
||||
del connections[resource]
|
||||
|
||||
if not connections and not self.roster[jid]['in_roster']:
|
||||
if not connections and \
|
||||
not self.roster[jid].get('in_roster', False):
|
||||
del self.roster[jid]
|
||||
if not was_offline:
|
||||
self.event("got_offline", presence)
|
||||
|
|
Loading…
Reference in a new issue