mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2025-12-06 07:12:04 +01:00
commit
a74f28150d
|
|
@ -61,9 +61,10 @@ class RepeatedTimer:
|
||||||
"""!Stop the timer worker thread
|
"""!Stop the timer worker thread
|
||||||
|
|
||||||
@return True or False"""
|
@return True or False"""
|
||||||
self._event.set()
|
|
||||||
if self._thread is not None:
|
if self._thread is not None:
|
||||||
logging.debug("stop repeatedTimer: %s", self._thread.name)
|
logging.debug("stop repeatedTimer: %s", self._thread.name)
|
||||||
|
self._event.set()
|
||||||
|
if self._thread is not None:
|
||||||
self._thread.join()
|
self._thread.join()
|
||||||
return True
|
return True
|
||||||
logging.warning("repeatedTimer always stopped")
|
logging.warning("repeatedTimer always stopped")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue