Beremiz_service.py
changeset 2600 0e20a0d48fae
parent 2595 a0d2741a6722
child 2601 9c5b20dc2b2e
--- a/Beremiz_service.py	Wed Apr 17 14:15:39 2019 +0200
+++ b/Beremiz_service.py	Wed Apr 17 14:18:22 2019 +0200
@@ -532,7 +532,8 @@
 pyro_thread_started = Lock()
 pyro_thread_started.acquire()
 pyro_thread = Thread(target=pyroserver.PyroLoop,
-                     kwargs=dict(when_ready=pyro_thread_started.release))
+                     kwargs=dict(when_ready=pyro_thread_started.release),
+                     name="PyroThread")
 pyro_thread.start()
 
 # Wait for pyro thread to be effective
@@ -557,7 +558,7 @@
     else:
         ui_thread_target = app.MainLoop
 
-    ui_thread = Thread(target=ui_thread_target)
+    ui_thread = Thread(target=ui_thread_target, name="UIThread")
     ui_thread.start()
 
     # This order ui loop to unblock main thread when ready.