summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2016-12-30 13:40:46 +0100
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2016-12-30 13:41:15 +0100
commit820144c40ceb16aec016d179c6e8e2a031cd9c41 (patch)
tree80402ba507e915472df90d55ee67234eb612ee62
parent6034df0a78f48b8d4d9df5254edefa5a36839b0a (diff)
downloadslixmpp-820144c40ceb16aec016d179c6e8e2a031cd9c41.tar.gz
slixmpp-820144c40ceb16aec016d179c6e8e2a031cd9c41.tar.bz2
slixmpp-820144c40ceb16aec016d179c6e8e2a031cd9c41.tar.xz
slixmpp-820144c40ceb16aec016d179c6e8e2a031cd9c41.zip
Add missing asyncio.coroutine decorators.
-rw-r--r--slixmpp/plugins/xep_0065/proxy.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/slixmpp/plugins/xep_0065/proxy.py b/slixmpp/plugins/xep_0065/proxy.py
index 55c81485..3fe6d2d1 100644
--- a/slixmpp/plugins/xep_0065/proxy.py
+++ b/slixmpp/plugins/xep_0065/proxy.py
@@ -55,6 +55,7 @@ class XEP_0065(BasePlugin):
"""Returns the socket associated to the SID."""
return self._sessions.get(sid, None)
+ @asyncio.coroutine
def handshake(self, to, ifrom=None, sid=None, timeout=None):
""" Starts the handshake to establish the socks5 bytestreams
connection.
@@ -104,6 +105,7 @@ class XEP_0065(BasePlugin):
iq['socks'].add_streamhost(proxy, host, port)
return iq.send(timeout=timeout, callback=callback)
+ @asyncio.coroutine
def discover_proxies(self, jid=None, ifrom=None, timeout=None):
"""Auto-discover the JIDs of SOCKS5 proxies on an XMPP server."""
if jid is None: