Ignore unknown handles
This commit is contained in:
parent
d45e6dd1a6
commit
845734eb72
@ -120,8 +120,11 @@ class PresenceService(dbus.service.Object):
|
|||||||
else:
|
else:
|
||||||
self.BuddyDisappeared(buddy.object_path())
|
self.BuddyDisappeared(buddy.object_path())
|
||||||
logging.debug("Buddy left: %s (%s)" % (buddy.props.nick, buddy.props.color))
|
logging.debug("Buddy left: %s (%s)" % (buddy.props.nick, buddy.props.color))
|
||||||
|
|
||||||
def _contact_offline(self, tp, handle):
|
def _contact_offline(self, tp, handle):
|
||||||
|
if not self._handles_buddies[tp].has_key(handle):
|
||||||
|
return
|
||||||
|
|
||||||
buddy = self._handles_buddies[tp].pop(handle)
|
buddy = self._handles_buddies[tp].pop(handle)
|
||||||
key = buddy.props.key
|
key = buddy.props.key
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user