[tor-commits] [stem/master] Rename the thread used for the asynchronous controller

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


commit 7e163eb1a0ef3ae2584bbdf2e48b6c677f705d9c
Author: Illia Volochii <illia.volochii at gmail.com>
Date:   Sun Apr 26 21:45:56 2020 +0300

    Rename the thread used for the asynchronous controller
---
 stem/control.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/stem/control.py b/stem/control.py
index 95fba5bf..0105f9d4 100644
--- a/stem/control.py
+++ b/stem/control.py
@@ -3901,7 +3901,10 @@ class Controller(_ControllerClassMethodMixin, _BaseControllerSocketMixin):
   def __init__(self, control_socket: 'stem.socket.ControlSocket', is_authenticated: bool = False) -> None:
     self._asyncio_loop = asyncio.new_event_loop()
 
-    self._asyncio_thread = threading.Thread(target=self._asyncio_loop.run_forever, name='asyncio')
+    self._asyncio_thread = threading.Thread(
+      target=self._asyncio_loop.run_forever,
+      name='async_controller',
+    )
     self._asyncio_thread.setDaemon(True)
     self._asyncio_thread.start()
 





More information about the tor-commits mailing list