services/presence/buddy.py: Don't allow the Owner to disappear, even if they have no handles left
This commit is contained in:
parent
a6e809a9ef
commit
10e1daf8c6
@ -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 '
|
||||
|
Loading…
Reference in New Issue
Block a user