diff options
author | mathieui <mathieui@mathieui.net> | 2021-12-13 21:25:41 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2021-12-13 21:25:41 +0100 |
commit | be6dde17f16e85b50361a3db243e9b2e40b2cb5d (patch) | |
tree | 35b9f3cf15303684e821641cb1adf0ed72464296 /slixmpp/plugins | |
parent | 14ae84d6661e7966125e0e6853074818bf83ec05 (diff) | |
download | slixmpp-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')
-rw-r--r-- | slixmpp/plugins/xep_0045/muc.py | 2 | ||||
-rw-r--r-- | slixmpp/plugins/xep_0163.py | 4 | ||||
-rw-r--r-- | slixmpp/plugins/xep_0199/ping.py | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/slixmpp/plugins/xep_0045/muc.py b/slixmpp/plugins/xep_0045/muc.py index bfb8e571..21f5c896 100644 --- a/slixmpp/plugins/xep_0045/muc.py +++ b/slixmpp/plugins/xep_0045/muc.py @@ -342,7 +342,7 @@ class XEP_0045(BasePlugin): maxchars = 9 else: maxstanzas = int(maxhistory) - return asyncio.create_task( + return asyncio.ensure_future( self.join_muc_wait( room=room, nick=nick, 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, ) diff --git a/slixmpp/plugins/xep_0199/ping.py b/slixmpp/plugins/xep_0199/ping.py index 11234bab..03d272dd 100644 --- a/slixmpp/plugins/xep_0199/ping.py +++ b/slixmpp/plugins/xep_0199/ping.py @@ -118,7 +118,7 @@ class XEP_0199(BasePlugin): tmp_futures.append(future) self.__pending_futures = tmp_futures - future = asyncio.create_task( + future = asyncio.ensure_future( self._keepalive(event), loop=self.xmpp.loop, ) |