[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [stem/master] Make `Controller.drop_guards` asynchronous



commit 397a94f591dcb40a0545a0346d23e8d68eea2176
Author: Illia Volochii <illia.volochii@xxxxxxxxx>
Date:   Tue Apr 21 22:21:23 2020 +0300

    Make `Controller.drop_guards` asynchronous
---
 stem/control.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/stem/control.py b/stem/control.py
index 66c8b567..e0248d76 100644
--- a/stem/control.py
+++ b/stem/control.py
@@ -3760,7 +3760,7 @@ class Controller(BaseController):
     response = await self.msg('MAPADDRESS %s' % mapaddress_arg)
     return stem.response._convert_to_mapaddress(response).entries
 
-  def drop_guards(self) -> None:
+  await def drop_guards(self) -> None:
     """
     Drops our present guard nodes and picks a new set.
 
@@ -3769,7 +3769,7 @@ class Controller(BaseController):
     :raises: :class:`stem.ControllerError` if Tor couldn't fulfill the request
     """
 
-    self.msg('DROPGUARDS')
+    await self.msg('DROPGUARDS')
 
   async def _post_authentication(self) -> None:
     await super(Controller, self)._post_authentication()



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits