Skip to content
Snippets Groups Projects
Commit 6a8c6cad authored by Dicson's avatar Dicson
Browse files

now_listen. correct disconnecting from chat control

parent cebc539c
No related branches found
No related tags found
No related merge requests found
......@@ -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_]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment