Commit 148655c5 authored by Philipp Hörist's avatar Philipp Hörist

Terminate esession only if it was active before

This is a regression from !96
parent 381b9b0a
......@@ -1606,6 +1606,8 @@ def activate_esessions(self):
self.begin_e2e_negotiation()
def terminate_esessions(self):
if not (self.session and self.session.enable_encryption):
return
# e2e was enabled, disable it
jid = str(self.session.jid)
thread_id = self.session.thread_id
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment