[sugar] [PATCH] services/presence/server_plugin: Initialize attributes with empty values
Simon McVittie
simon.mcvittie
Tue May 22 11:49:01 EDT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
- ---
services/presence/server_plugin.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/services/presence/server_plugin.py b/services/presence/server_plugin.py
index daa31aa..a886fdb 100644
- --- a/services/presence/server_plugin.py
+++ b/services/presence/server_plugin.py
@@ -146,6 +146,12 @@ class ServerPlugin(gobject.GObject):
self._ip4am = psutils.IP4AddressMonitor.get_instance()
self._ip4am.connect('address-changed', self._ip4_address_changed_cb)
+ self._publish_channel = None
+ self._subscribe_channel = None
+ self._subscribe_members = set()
+ self._subscribe_local_pending = set()
+ self._subscribe_remote_pending = set()
+
def _ip4_address_changed_cb(self, ip4am, address):
_logger.debug("::: IP4 address now %s" % address)
if address:
- --
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
iD8DBQFGUxDtWSc8zVUw7HYRAtfAAJ9lC7T+LmilSiCIZhW/CmUCZ2/tZQCdEkEf
bqCL1ofnRk5p9Y5JH9Lv2Kg=
=j40A
-----END PGP SIGNATURE-----
More information about the Sugar-devel
mailing list