diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-10-19 13:22:42 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-10-19 13:22:42 (GMT) |
commit | cd29967c2ece4e5569bbc5e11752e415ab971fda (patch) | |
tree | 80fb706635a11ca0f7f11874276b420d0eb0ed2a /sugar/chat | |
parent | cf13a7ff5bcf4987d23d56669e6c984142033338 (diff) |
Refactor a bit to keep host independent from the shell
Diffstat (limited to 'sugar/chat')
-rw-r--r-- | sugar/chat/ActivityChat.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sugar/chat/ActivityChat.py b/sugar/chat/ActivityChat.py index a426abc..1892672 100644 --- a/sugar/chat/ActivityChat.py +++ b/sugar/chat/ActivityChat.py @@ -63,4 +63,5 @@ class ActivityChat(GroupChat): self._setup_stream(self._chat_service) def _destroy_cb(self, widget): - self._pservice.unregister_service(self._chat_service) + if self._chat_service: + self._pservice.unregister_service(self._chat_service) |