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

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



commit 330c79ac7025dcaf15470e993b8d5c3607f07f78
Author: Illia Volochii <illia.volochii@xxxxxxxxx>
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:
     """



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