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

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



commit 7e163eb1a0ef3ae2584bbdf2e48b6c677f705d9c
Author: Illia Volochii <illia.volochii@xxxxxxxxx>
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()
 



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