summaryrefslogtreecommitdiff
path: root/poezio/core
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/core
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/core')
-rw-r--r--poezio/core/core.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/poezio/core/core.py b/poezio/core/core.py
index 08ad8799..f8be2593 100644
--- a/poezio/core/core.py
+++ b/poezio/core/core.py
@@ -621,7 +621,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):