From 10e1daf8c61e5d3b5765d7d138d7d8e014dd30b2 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 22 May 2007 16:30:02 +0100 Subject: [PATCH] services/presence/buddy.py: Don't allow the Owner to disappear, even if they have no handles left --- services/presence/buddy.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/presence/buddy.py b/services/presence/buddy.py index eb072a18..90b000e6 100644 --- a/services/presence/buddy.py +++ b/services/presence/buddy.py @@ -266,7 +266,8 @@ class Buddy(ExportedGObject): del self.handles[tp_client] self.TelepathyHandleRemoved(conn.service_name, conn.object_path, handle) - if not self.handles: + # the Owner can't disappear - that would be silly + if not self.handles and not self._owner: self.emit('disappeared') else: _logger.debug('Telepathy handle %u supposedly removed, but '