1
0

threading.Thread: fix some DeprecationWarnings

"DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead"
This commit is contained in:
SomberNight
2022-05-23 17:52:39 +02:00
parent 0431cd825e
commit 98feff07ad
6 changed files with 6 additions and 6 deletions

View File

@@ -180,7 +180,7 @@ class SafeTPlugin(HW_PluginBase):
import threading
settings = self.request_safe_t_init_settings(wizard, method, self.device)
t = threading.Thread(target=self._initialize_device_safe, args=(settings, method, device_id, wizard, handler))
t.setDaemon(True)
t.daemon = True
t.start()
exit_code = wizard.loop.exec_()
if exit_code != 0: