summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2014-05-19 23:58:15 +0200
committermathieui <mathieui@mathieui.net>2014-05-19 23:58:15 +0200
commitf782516e9585ab8aea4dceabd8aab3da42c5eec0 (patch)
tree5149f3d575c3349d71e9a9a3af97a4193eab9a9e
parent2ec83f3412b69a78f1b0331dedd40f09be5709d8 (diff)
downloadpoezio-f782516e9585ab8aea4dceabd8aab3da42c5eec0.tar.gz
poezio-f782516e9585ab8aea4dceabd8aab3da42c5eec0.tar.bz2
poezio-f782516e9585ab8aea4dceabd8aab3da42c5eec0.tar.xz
poezio-f782516e9585ab8aea4dceabd8aab3da42c5eec0.zip
End all otr conversations when the plugins is unloader (or poezio exits)
-rw-r--r--plugins/otr.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/otr.py b/plugins/otr.py
index c0cd8637..08f7fed6 100644
--- a/plugins/otr.py
+++ b/plugins/otr.py
@@ -410,6 +410,9 @@ class Plugin(BasePlugin):
completion=self.completion_otr)
def cleanup(self):
+ for context in self.contexts.values():
+ context.disconnect()
+
ConversationTab.remove_information_element('otr')
PrivateTab.remove_information_element('otr')