added memleak test and attempted to fix presence leak

This commit is contained in:
Nathan Fritz
2010-03-26 13:27:13 -07:00
parent 7383f72367
commit 0659ddeff0
2 changed files with 7 additions and 1 deletions

View File

@@ -281,7 +281,7 @@ class basexmpp(object):
name = self.roster[jid].get('name', '')
if wasoffline and (show == 'available' or show in presence.showtypes):
self.event("got_online", presence)
elif not wasoffline and show == 'unavailable':
elif show == 'unavailable':
logging.debug("%s %s got offline" % (jid, resource))
if len(self.roster[jid]['presence']) > 1:
del self.roster[jid]['presence'][resource]