[tor-commits] [stem/master] Fix closing conections

atagar at torproject.org atagar at torproject.org
Thu Jul 16 01:28:58 UTC 2020


commit 330c79ac7025dcaf15470e993b8d5c3607f07f78
Author: Illia Volochii <illia.volochii at gmail.com>
Date:   Tue Apr 14 22:00:20 2020 +0300

    Fix closing conections
---
 stem/control.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/stem/control.py b/stem/control.py
index d592c4af..0cc187b4 100644
--- a/stem/control.py
+++ b/stem/control.py
@@ -659,8 +659,8 @@ class BaseController(object):
         # provide an assurance to the caller that when we raise a SocketClosed
         # exception we are shut down afterward for realz.
 
-        self.close()
-        raise
+          await self.close()
+          raise
 
   def is_alive(self) -> bool:
     """





More information about the tor-commits mailing list