[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [stem/master] Make `Controller.attach_stream` asynchronous
commit 81f509ceecce78fa09488c1da52eb4480de25e66
Author: Illia Volochii <illia.volochii@xxxxxxxxx>
Date: Tue Apr 21 22:23:09 2020 +0300
Make `Controller.attach_stream` asynchronous
---
stem/control.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/stem/control.py b/stem/control.py
index e0248d76..8eaa8bd8 100644
--- a/stem/control.py
+++ b/stem/control.py
@@ -3584,7 +3584,7 @@ class Controller(BaseController):
return streams
- def attach_stream(self, stream_id: str, circuit_id: str, exiting_hop: Optional[int] = None) -> None:
+ async def attach_stream(self, stream_id: str, circuit_id: str, exiting_hop: Optional[int] = None) -> None:
"""
Attaches a stream to a circuit.
@@ -3606,7 +3606,7 @@ class Controller(BaseController):
if exiting_hop:
query += ' HOP=%s' % exiting_hop
- response = stem.response._convert_to_single_line(self.msg(query))
+ response = stem.response._convert_to_single_line(await self.msg(query))
if not response.is_ok():
if response.code == '552':
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits