X-Git-Url: http://git.maemo.org/git/?p=theonering;a=blobdiff_plain;f=src%2Fchannel%2Fcontact_list.py;h=970b8091344c279f4d9bba5a7ac66b7f55f18510;hp=e2a84934a620aa08510ffcaafb30c44e6dc7ae96;hb=8b77cf6f2a6b8f1ec930395d8f9b762fa1d4bfbc;hpb=78b9596221268a59856b410c4360e3da6d2bd60a diff --git a/src/channel/contact_list.py b/src/channel/contact_list.py index e2a8493..970b809 100644 --- a/src/channel/contact_list.py +++ b/src/channel/contact_list.py @@ -4,6 +4,7 @@ import telepathy import util.go_utils as gobject_utils import util.coroutines as coroutines +import gtk_toolbox import handle @@ -39,6 +40,14 @@ class AllContactsListChannel(AbstractListChannel): contacts = addressbook.get_contacts() self._process_refresh(addressbook, contacts, []) + @gtk_toolbox.log_exception(_moduleLogger) + def Close(self): + telepathy.server.ChannelTypeContactList.Close(self) + self.remove_from_connection() + self._session.addressbook.updateSignalHandler.unregister_sink( + self._on_contacts_refreshed + ) + @coroutines.func_sink @coroutines.expand_positional @gobject_utils.async