[tor-commits] [stem/master] Make `Controller.remove_ephemeral_hidden_service` asynchronous
atagar at torproject.org
atagar at torproject.org
Thu Jul 16 01:28:59 UTC 2020
commit 211c726637f744b201a2871a61090dfaad6decc1
Author: Illia Volochii <illia.volochii at gmail.com>
Date: Tue Apr 21 22:59:48 2020 +0300
Make `Controller.remove_ephemeral_hidden_service` asynchronous
---
stem/control.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/stem/control.py b/stem/control.py
index dce1584b..bcf34f6c 100644
--- a/stem/control.py
+++ b/stem/control.py
@@ -3016,7 +3016,7 @@ class Controller(BaseController):
return response
- def remove_ephemeral_hidden_service(self, service_id: str) -> bool:
+ async def remove_ephemeral_hidden_service(self, service_id: str) -> bool:
"""
Discontinues a given hidden service that was created with
:func:`~stem.control.Controller.create_ephemeral_hidden_service`.
@@ -3031,7 +3031,7 @@ class Controller(BaseController):
:raises: :class:`stem.ControllerError` if the call fails
"""
- response = stem.response._convert_to_single_line(self.msg('DEL_ONION %s' % service_id))
+ response = stem.response._convert_to_single_line(await self.msg('DEL_ONION %s' % service_id))
if response.is_ok():
return True
More information about the tor-commits
mailing list