summaryrefslogtreecommitdiff
path: root/slixmpp/plugins/xep_0065/socks5.py
diff options
context:
space:
mode:
Diffstat (limited to 'slixmpp/plugins/xep_0065/socks5.py')
-rw-r--r--slixmpp/plugins/xep_0065/socks5.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/slixmpp/plugins/xep_0065/socks5.py b/slixmpp/plugins/xep_0065/socks5.py
index 54267b32..f390e313 100644
--- a/slixmpp/plugins/xep_0065/socks5.py
+++ b/slixmpp/plugins/xep_0065/socks5.py
@@ -137,8 +137,8 @@ class Socks5Protocol(asyncio.Protocol):
def resume_writing(self):
self.paused.set_result(None)
- def write(self, data):
- yield from self.paused
+ async def write(self, data):
+ await self.paused
self.transport.write(data)
def _send_methods(self):