diff options
Diffstat (limited to 'now_listen')
-rw-r--r-- | now_listen/now_listen.py | 2 |
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_] |