Fix timer error

This commit is contained in:
Bastian Schroll 2021-02-03 10:40:38 +01:00 committed by Jan Speller
parent 436e5e46ab
commit 890b2630cb

View file

@ -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")