summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2011-06-15 10:55:36 -0700
committerLance Stout <lancestout@gmail.com>2011-06-15 10:55:36 -0700
commit58aa944a5e07032fc8d5770347f82e7c2ce6c948 (patch)
tree8dc16746bfd597ae6d630d132ebbbe8b0a22ff39
parentdd41a85efcd85bb3a4eb81187041106c65c6aa2d (diff)
downloadslixmpp-58aa944a5e07032fc8d5770347f82e7c2ce6c948.tar.gz
slixmpp-58aa944a5e07032fc8d5770347f82e7c2ce6c948.tar.bz2
slixmpp-58aa944a5e07032fc8d5770347f82e7c2ce6c948.tar.xz
slixmpp-58aa944a5e07032fc8d5770347f82e7c2ce6c948.zip
Fix another roster issue.
Caused by same issue of a JID being in the roster, but with an incomplete entry.
-rw-r--r--sleekxmpp/basexmpp.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sleekxmpp/basexmpp.py b/sleekxmpp/basexmpp.py
index 3992a4f9..a7d4931a 100644
--- a/sleekxmpp/basexmpp.py
+++ b/sleekxmpp/basexmpp.py
@@ -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)