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/fixes.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/fixes.py')
-rw-r--r-- | poezio/fixes.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/poezio/fixes.py b/poezio/fixes.py index f8de7b14..19c4fc13 100644 --- a/poezio/fixes.py +++ b/poezio/fixes.py @@ -8,6 +8,7 @@ TODO: Check that they are fixed and remove those hacks from slixmpp.stanza import Message from slixmpp.xmlstream import ET +import asyncio import logging log = logging.getLogger(__name__) @@ -22,7 +23,9 @@ def has_identity(xmpp, jid, identity, on_true=None, on_false=None): if not res and on_false is not None: on_false() - xmpp.plugin['xep_0030'].get_info(jid=jid, callback=_cb) + asyncio.ensure_future( + xmpp.plugin['xep_0030'].get_info(jid=jid, callback=_cb) + ) def get_room_form(xmpp, room, callback): |