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

[tor-commits] [stem/master] Update `BaseController._event_loop` to keep the previous behavior



commit 0dcb75bbaac67cd1c461f3bbc3fe5550c47072ef
Author: Illia Volochii <illia.volochii@xxxxxxxxx>
Date:   Thu May 21 22:52:22 2020 +0300

    Update `BaseController._event_loop` to keep the previous behavior
---
 stem/control.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/stem/control.py b/stem/control.py
index be7ab6c6..c26da351 100644
--- a/stem/control.py
+++ b/stem/control.py
@@ -989,6 +989,8 @@ class BaseController(_BaseControllerSocketMixin):
         try:
           await asyncio.wait_for(self._event_notice.wait(), timeout=0.05)
         except asyncio.TimeoutError:
+          pass
+        finally:
           self._event_notice.clear()
 
 



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