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/core | |
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/core')
-rw-r--r-- | poezio/core/core.py | 4 | ||||
-rw-r--r-- | poezio/core/handlers.py | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/poezio/core/core.py b/poezio/core/core.py index 3ad15719..2f692b42 100644 --- a/poezio/core/core.py +++ b/poezio/core/core.py @@ -633,7 +633,9 @@ class Core: else: self.do_command(''.join(char_list), True) if self.status.show not in ('xa', 'away'): - self.xmpp.plugin['xep_0319'].idle() + asyncio.ensure_future( + self.xmpp.plugin['xep_0319'].idle() + ) self.doupdate() def save_config(self): diff --git a/poezio/core/handlers.py b/poezio/core/handlers.py index c344ebd3..370d3a85 100644 --- a/poezio/core/handlers.py +++ b/poezio/core/handlers.py @@ -98,8 +98,10 @@ class HandlerCore: self.core.xmpp.plugin['xep_0280'].enable() self.core.check_bookmark_storage(features) - self.core.xmpp.plugin['xep_0030'].get_info( - jid=self.core.xmpp.boundjid.domain, callback=callback) + asyncio.ensure_future( + self.core.xmpp.plugin['xep_0030'].get_info( + jid=self.core.xmpp.boundjid.domain, callback=callback) + ) def find_identities(self, _): asyncio.ensure_future( |