Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim-plugins.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Fomin <fominde@gmail.com>2011-10-17 21:13:08 +0400
committerDenis Fomin <fominde@gmail.com>2011-10-17 21:13:08 +0400
commit6a8c6cad65561ce034c8a3e83251d090ef01b64c (patch)
tree31ad4958e9548c7483e9cd47fc255504dbea0377 /now_listen
parentcebc539c0827083f5278398091143acb04fef3a1 (diff)
now_listen. correct disconnecting from chat control
Diffstat (limited to 'now_listen')
-rw-r--r--now_listen/now_listen.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/now_listen/now_listen.py b/now_listen/now_listen.py
index d7c4b71..0a29427 100644
--- a/now_listen/now_listen.py
+++ b/now_listen/now_listen.py
@@ -95,6 +95,8 @@ class Base(object):
self.chat_control.handlers[self.id_] = self.chat_control.msg_textview
def disconnect_from_chat_control(self):
+ if self.id_ not in self.chat_control.handlers:
+ return
if self.chat_control.handlers[self.id_].handler_is_connected(self.id_):
self.chat_control.handlers[self.id_].disconnect(self.id_)
del self.chat_control.handlers[self.id_]