summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorMaxime “pep” Buquet <pep@bouah.net>2019-08-24 00:17:03 +0200
committerMaxime “pep” Buquet <pep@bouah.net>2019-12-27 18:58:48 +0100
commit4586765793deaf299bbbeb6da34f692f54e2d48e (patch)
tree160c365e5654c66d45909f806583bab0dd92e4ee /plugins
parent1dd713b8577658710e767c9b171d073b2b2877b4 (diff)
downloadpoezio-4586765793deaf299bbbeb6da34f692f54e2d48e.tar.gz
poezio-4586765793deaf299bbbeb6da34f692f54e2d48e.tar.bz2
poezio-4586765793deaf299bbbeb6da34f692f54e2d48e.tar.xz
poezio-4586765793deaf299bbbeb6da34f692f54e2d48e.zip
omemo: session_start is now async
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/omemo_plugin.py5
1 files changed, 4 insertions, 1 deletions
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')