diff options
author | mathieui <mathieui@mathieui.net> | 2018-02-11 19:25:38 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2018-02-11 19:25:38 +0100 |
commit | 979396bb1e2b9f076459e9e086b1656296fd7ae2 (patch) | |
tree | 19e88cfd04852cbc59145d22d5743db1de963cd3 /slixmpp/plugins/xep_0065 | |
parent | e1777263873e96d7189b85a3c57197ab6176fae7 (diff) | |
download | slixmpp-979396bb1e2b9f076459e9e086b1656296fd7ae2.tar.gz slixmpp-979396bb1e2b9f076459e9e086b1656296fd7ae2.tar.bz2 slixmpp-979396bb1e2b9f076459e9e086b1656296fd7ae2.tar.xz slixmpp-979396bb1e2b9f076459e9e086b1656296fd7ae2.zip |
asyncio.async has been scheduled for removal for a long time now
move to asyncio.ensure_future
Diffstat (limited to 'slixmpp/plugins/xep_0065')
-rw-r--r-- | slixmpp/plugins/xep_0065/proxy.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/slixmpp/plugins/xep_0065/proxy.py b/slixmpp/plugins/xep_0065/proxy.py index cda33dca..a4be2717 100644 --- a/slixmpp/plugins/xep_0065/proxy.py +++ b/slixmpp/plugins/xep_0065/proxy.py @@ -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.""" |