mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2026-01-20 15:40:24 +01:00
Fix timer error
This commit is contained in:
parent
436e5e46ab
commit
890b2630cb
|
|
@ -61,9 +61,9 @@ class RepeatedTimer:
|
|||
"""!Stop the timer worker thread
|
||||
|
||||
@return True or False"""
|
||||
self._event.set()
|
||||
if self._thread is not None:
|
||||
logging.debug("stop repeatedTimer: %s", self._thread.name)
|
||||
self._event.set()
|
||||
self._thread.join()
|
||||
return True
|
||||
logging.warning("repeatedTimer always stopped")
|
||||
|
|
|
|||
Loading…
Reference in a new issue