Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMorgan Collett <morgan.collett@gmail.com>2007-10-22 12:22:32 (GMT)
committer Morgan Collett <morgan.collett@gmail.com>2007-10-22 12:22:32 (GMT)
commit012fc5d23b25b4f240043a4de8deed6678a3256e (patch)
tree49fde7601a5960ccc75d4e607a17dfe2e2a18447 /lib
parent06ec3d2b22775bfca97880ae5e6702ad1f6649c3 (diff)
#4238: Handle double BuddyLeft in handle tracking in sugar.presence
Diffstat (limited to 'lib')
-rw-r--r--lib/sugar/presence/activity.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/sugar/presence/activity.py b/lib/sugar/presence/activity.py
index c162305..5ce507d 100644
--- a/lib/sugar/presence/activity.py
+++ b/lib/sugar/presence/activity.py
@@ -203,8 +203,9 @@ class Activity(gobject.GObject):
def _buddy_left_cb(self, object_path):
_logger.debug('%r: buddy %s left', self, object_path)
gobject.idle_add(self._emit_buddy_left_signal, object_path)
- handle = self._buddy_path_to_handle.pop(object_path)
- self._handle_to_buddy_path.pop(handle, None)
+ handle = self._buddy_path_to_handle.pop(object_path, None)
+ if handle:
+ self._handle_to_buddy_path.pop(handle, None)
def _emit_new_channel_signal(self, object_path):
"""Generate new-channel GObject signal with channel object path