diff options
author | Lance Stout <lancestout@gmail.com> | 2011-06-15 10:56:33 -0700 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2011-06-15 10:56:33 -0700 |
commit | 4efd41f1ba679348487e1e88b7426830e92a9f9b (patch) | |
tree | 93586c2f232374f61c2a2ae82dc90f18e817a181 /sleekxmpp | |
parent | 5d11ab269d721a6360420798cfa5243e63bf8013 (diff) | |
parent | 58aa944a5e07032fc8d5770347f82e7c2ce6c948 (diff) | |
download | slixmpp-4efd41f1ba679348487e1e88b7426830e92a9f9b.tar.gz slixmpp-4efd41f1ba679348487e1e88b7426830e92a9f9b.tar.bz2 slixmpp-4efd41f1ba679348487e1e88b7426830e92a9f9b.tar.xz slixmpp-4efd41f1ba679348487e1e88b7426830e92a9f9b.zip |
Merge branch 'develop' into stream_features
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 ab52dfbb..8e5c762a 100644 --- a/sleekxmpp/basexmpp.py +++ b/sleekxmpp/basexmpp.py @@ -643,7 +643,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) |