mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2026-04-21 06:03:50 +00:00
start timer as daemon
This commit is contained in:
parent
11eab418ed
commit
3cf0b49c0e
2 changed files with 2 additions and 0 deletions
|
|
@ -48,6 +48,7 @@ class RepeatedTimer:
|
|||
self._event.clear()
|
||||
self._thread = Thread(target=self._target)
|
||||
self._thread.name = "RepTim(" + str(self._interval) + ")"
|
||||
self._thread.daemon = True # start as daemon (thread dies if main program ends)
|
||||
self._thread.start()
|
||||
logging.debug("start repeatedTimer: %s", self._thread.name)
|
||||
return True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue