[sugar] [PATCH] services/presence/buddy.py: Don't allow the Owner to disappear, even if they have no handles left
Simon McVittie
simon.mcvittie
Tue May 22 11:48:27 EDT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
- ---
services/presence/buddy.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/services/presence/buddy.py b/services/presence/buddy.py
index eb072a1..90b000e 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 '
- --
1.5.2-rc3.GIT
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: OpenPGP key: http://www.pseudorandom.co.uk/2003/contact/ or pgp.net
iD8DBQFGUxDLWSc8zVUw7HYRAuM5AJkBGWkTob1/MQ18vNiOJEtIhQObnACdFdYa
/3VmpW9LN5TVQ97590YDkLM=
=GORN
-----END PGP SIGNATURE-----
More information about the Sugar-devel
mailing list