mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2026-01-09 18:20:04 +01:00
fixes
This commit is contained in:
parent
7d84164339
commit
575cc1f19a
|
|
@ -71,9 +71,8 @@ class RepeatedTimer:
|
|||
logging.debug("stop repeatedTimer: %s", self._thread.name)
|
||||
self._thread.join()
|
||||
return True
|
||||
else:
|
||||
logging.warning("repeatedTimer always stopped")
|
||||
return False
|
||||
logging.warning("repeatedTimer always stopped")
|
||||
return False
|
||||
|
||||
def _target(self):
|
||||
"""!Runs the target function with his arguments in own thread"""
|
||||
|
|
@ -97,10 +96,11 @@ class RepeatedTimer:
|
|||
self._lostEvents += lostEvents
|
||||
self._overdueCount += 1
|
||||
logging.debug("repeatedTimer thread stopped: %s", self._thread.name)
|
||||
self._Thread = None # set to none after leave teh thread (running recognize)
|
||||
self._thread = None # set to none after leave teh thread (running recognize)
|
||||
|
||||
@property
|
||||
def isRunning(self):
|
||||
"""!Property for repeatedTimer running state"""
|
||||
if self._thread:
|
||||
return True
|
||||
return False
|
||||
|
|
|
|||
Loading…
Reference in a new issue