diff options
author | mathieui <mathieui@mathieui.net> | 2022-03-01 19:43:35 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2022-03-01 19:43:35 +0100 |
commit | cca5bc57027b22e65f52c289f6fe20816dfe331a (patch) | |
tree | 171a88baf9324e925f2d6f64d2fbb32272e89a18 /poezio/multiuserchat.py | |
parent | d8785ae0bdc86d135043ecec39babc5c54106ef4 (diff) | |
download | poezio-cca5bc57027b22e65f52c289f6fe20816dfe331a.tar.gz poezio-cca5bc57027b22e65f52c289f6fe20816dfe331a.tar.bz2 poezio-cca5bc57027b22e65f52c289f6fe20816dfe331a.tar.xz poezio-cca5bc57027b22e65f52c289f6fe20816dfe331a.zip |
fix: slixmpp 1.8.0 breaking changes
Diffstat (limited to 'poezio/multiuserchat.py')
-rw-r--r-- | poezio/multiuserchat.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/poezio/multiuserchat.py b/poezio/multiuserchat.py index 30c36a77..efbef1c5 100644 --- a/poezio/multiuserchat.py +++ b/poezio/multiuserchat.py @@ -10,6 +10,7 @@ Add some facilities that are not available on the XEP_0045 slix plugin """ +import asyncio from xml.etree import ElementTree as ET from poezio.common import safeJID @@ -137,7 +138,9 @@ def join_groupchat(core, xmpp.plugin['xep_0045'].our_nicks[jid] = to.resource try: - 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) + ) except (IqError, IqTimeout): return core.information('Failed to retrieve messages', 'Error') |