From 4586765793deaf299bbbeb6da34f692f54e2d48e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Sat, 24 Aug 2019 00:17:03 +0200 Subject: omemo: session_start is now async MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- plugins/omemo_plugin.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/omemo_plugin.py b/plugins/omemo_plugin.py index 7fd352fa..fff10cbf 100644 --- a/plugins/omemo_plugin.py +++ b/plugins/omemo_plugin.py @@ -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') -- cgit v1.2.3