Fix a traceback in the OTR plugin
This commit is contained in:
parent
3b0cddd368
commit
7c99b82642
1 changed files with 2 additions and 1 deletions
|
@ -824,7 +824,8 @@ class Plugin(BasePlugin):
|
|||
context.disconnect()
|
||||
if isinstance(tab, DynamicConversationTab) and not tab.locked_resource:
|
||||
ctx = self.find_encrypted_context_with_matching(safeJID(name).bare)
|
||||
ctx.disconnect()
|
||||
if ctx is not None:
|
||||
ctx.disconnect()
|
||||
elif action == 'start' or action == 'refresh':
|
||||
self.otr_start(tab, name, format_dict)
|
||||
elif action == 'ourfpr':
|
||||
|
|
Loading…
Reference in a new issue