summaryrefslogtreecommitdiff
path: root/slixmpp/plugins/xep_0163.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2021-12-13 21:25:41 +0100
committermathieui <mathieui@mathieui.net>2021-12-13 21:25:41 +0100
commitbe6dde17f16e85b50361a3db243e9b2e40b2cb5d (patch)
tree35b9f3cf15303684e821641cb1adf0ed72464296 /slixmpp/plugins/xep_0163.py
parent14ae84d6661e7966125e0e6853074818bf83ec05 (diff)
downloadslixmpp-be6dde17f16e85b50361a3db243e9b2e40b2cb5d.tar.gz
slixmpp-be6dde17f16e85b50361a3db243e9b2e40b2cb5d.tar.bz2
slixmpp-be6dde17f16e85b50361a3db243e9b2e40b2cb5d.tar.xz
slixmpp-be6dde17f16e85b50361a3db243e9b2e40b2cb5d.zip
Revert "Replace asyncio.ensure_future() with asyncio.create_task()"
This reverts commit bac6a4b2bf2fc98401e0de7168c4a5cf31b08b37. This is not actually something we want
Diffstat (limited to 'slixmpp/plugins/xep_0163.py')
-rw-r--r--slixmpp/plugins/xep_0163.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/slixmpp/plugins/xep_0163.py b/slixmpp/plugins/xep_0163.py
index 07cef975..46ca4235 100644
--- a/slixmpp/plugins/xep_0163.py
+++ b/slixmpp/plugins/xep_0163.py
@@ -61,7 +61,7 @@ class XEP_0163(BasePlugin):
for ns in namespace:
self.xmpp['xep_0030'].add_feature('%s+notify' % ns,
jid=jid)
- asyncio.create_task(
+ asyncio.ensure_future(
self.xmpp['xep_0115'].update_caps(jid, broadcast=False),
loop=self.xmpp.loop,
)
@@ -82,7 +82,7 @@ class XEP_0163(BasePlugin):
for ns in namespace:
self.xmpp['xep_0030'].del_feature(jid=jid,
feature='%s+notify' % namespace)
- asyncio.create_task(
+ asyncio.ensure_future(
self.xmpp['xep_0115'].update_caps(jid, broadcast=False),
loop=self.xmpp.loop,
)