Update timer.py

This commit is contained in:
Bastian Schroll 2021-02-03 10:43:12 +01:00 committed by Jan Speller
parent 890b2630cb
commit 0363979c6c

View file

@ -64,7 +64,8 @@ class RepeatedTimer:
if self._thread is not None:
logging.debug("stop repeatedTimer: %s", self._thread.name)
self._event.set()
self._thread.join()
if self._thread is not None:
self._thread.join()
return True
logging.warning("repeatedTimer always stopped")
return True