Commit 45867657 authored by Maxime Buquet's avatar Maxime Buquet

omemo: session_start is now async

Signed-off-by: Maxime Buquet's avatarMaxime “pep” Buquet <pep@bouah.net>
parent 1dd713b8
......@@ -10,6 +10,7 @@
"""
import os
import asyncio
import logging
from poezio.plugin_e2ee import E2EEPlugin
......@@ -55,7 +56,9 @@ class Plugin(E2EEPlugin):
except (PluginCouldNotLoad,):
log.exception('And error occured when loading the omemo plugin.')
self.core.xmpp['xep_0384'].session_start(self.core.xmpp.boundjid)
asyncio.ensure_future(
self.core.xmpp['xep_0384'].session_start(self.core.xmpp.boundjid)
)
def display_error(self, txt) -> None:
self.api.information(txt, 'Error')
......
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