End all otr conversations when the plugins is unloader (or poezio exits)
This commit is contained in:
parent
2ec83f3412
commit
f782516e95
1 changed files with 3 additions and 0 deletions
|
@ -410,6 +410,9 @@ class Plugin(BasePlugin):
|
||||||
completion=self.completion_otr)
|
completion=self.completion_otr)
|
||||||
|
|
||||||
def cleanup(self):
|
def cleanup(self):
|
||||||
|
for context in self.contexts.values():
|
||||||
|
context.disconnect()
|
||||||
|
|
||||||
ConversationTab.remove_information_element('otr')
|
ConversationTab.remove_information_element('otr')
|
||||||
PrivateTab.remove_information_element('otr')
|
PrivateTab.remove_information_element('otr')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue