summaryrefslogtreecommitdiff
path: root/poezio/multiuserchat.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2021-02-27 11:09:38 +0100
committermathieui <mathieui@mathieui.net>2021-02-27 11:10:11 +0100
commit2d1bf7b1dd2480a9884cde01240d05a7396b3270 (patch)
treed0c414b5efd8ffdc4176b5aee8952bd9c5c24a65 /poezio/multiuserchat.py
parent49820f1460b7fb39df5151d7044cb8a7bcc0ff89 (diff)
downloadpoezio-2d1bf7b1dd2480a9884cde01240d05a7396b3270.tar.gz
poezio-2d1bf7b1dd2480a9884cde01240d05a7396b3270.tar.bz2
poezio-2d1bf7b1dd2480a9884cde01240d05a7396b3270.tar.xz
poezio-2d1bf7b1dd2480a9884cde01240d05a7396b3270.zip
misc: wrap some calls in ensure_future to prepare for slix API change
Some things need to be rewritten in a cleaner way, and other need to be directly deleted, but that will need to wait for the slix api change merge.
Diffstat (limited to 'poezio/multiuserchat.py')
-rw-r--r--poezio/multiuserchat.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/poezio/multiuserchat.py b/poezio/multiuserchat.py
index 778e9f3f..a70fb4d0 100644
--- a/poezio/multiuserchat.py
+++ b/poezio/multiuserchat.py
@@ -12,6 +12,7 @@ slix plugin
from __future__ import annotations
+import asyncio
from xml.etree import ElementTree as ET
from typing import (
Optional,
@@ -118,7 +119,9 @@ def join_groupchat(
xmpp.plugin['xep_0045'].rooms[jid] = {}
xmpp.plugin['xep_0045'].our_nicks[jid] = to.resource
- xmpp.plugin['xep_0030'].get_info(jid=jid, callback=on_disco)
+ asyncio.ensure_future(
+ xmpp.plugin['xep_0030'].get_info(jid=jid, callback=on_disco)
+ )
def leave_groupchat(