diff options
author | Lance Stout <lancestout@gmail.com> | 2011-06-15 10:56:49 -0700 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2011-06-15 10:56:49 -0700 |
commit | 393d702e77a82231a20b42a75e191b7e00b3f5c3 (patch) | |
tree | 49f0a29cc3a385e7cd1f1f1a04d0c175dbbcac2d /sleekxmpp | |
parent | 8fada4d015ae2f6ab2e0b0c7d0b5cf2a072753d2 (diff) | |
parent | 58aa944a5e07032fc8d5770347f82e7c2ce6c948 (diff) | |
download | slixmpp-393d702e77a82231a20b42a75e191b7e00b3f5c3.tar.gz slixmpp-393d702e77a82231a20b42a75e191b7e00b3f5c3.tar.bz2 slixmpp-393d702e77a82231a20b42a75e191b7e00b3f5c3.tar.xz slixmpp-393d702e77a82231a20b42a75e191b7e00b3f5c3.zip |
Merge branch 'develop' into exceptions
Diffstat (limited to 'sleekxmpp')
-rw-r--r-- | sleekxmpp/basexmpp.py | 3 |
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) |