asyncio.async has been scheduled for removal for a long time now

move to asyncio.ensure_future
This commit is contained in:
mathieui
2018-02-11 19:25:38 +01:00
parent e177726387
commit 979396bb1e
4 changed files with 8 additions and 8 deletions

View File

@@ -215,7 +215,7 @@ class XEP_0065(BasePlugin):
self.xmpp.event('socks5_stream', conn)
self.xmpp.event('stream:%s:%s' % (sid, requester), conn)
asyncio.async(gather(proxy_futures, iq, streamhosts))
asyncio.ensure_future(gather(proxy_futures, iq, streamhosts))
def activate(self, proxy, sid, target, ifrom=None, timeout=None, callback=None):
"""Activate the socks5 session that has been negotiated."""