[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [stem/master] Await a coroutine
commit 7ec57569d9ad912b444942c89ec4b1c22a872398
Author: Illia Volochii <illia.volochii@xxxxxxxxx>
Date: Thu Apr 23 20:20:30 2020 +0300
Await a coroutine
---
stem/control.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/stem/control.py b/stem/control.py
index b7050626..b0535b08 100644
--- a/stem/control.py
+++ b/stem/control.py
@@ -1426,7 +1426,7 @@ class AsyncController(BaseController):
Listener.CONTROL: 'ControlListenAddress',
}[listener_type]
- port_value = self._get_conf_single(port_option).split()[0]
+ port_value = (await self._get_conf_single(port_option)).split()[0]
for listener in (await self.get_conf(listener_option, multiple = True)):
if ':' in listener:
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits