Use instance vars instead of class members
This commit is contained in:
parent
21779b6d0d
commit
545a41b2b2
@ -12,10 +12,9 @@ KILL_TIMEOUT = 60
|
|||||||
|
|
||||||
class Watchdog:
|
class Watchdog:
|
||||||
|
|
||||||
shared_heartbeat = Value('d', 0.0)
|
|
||||||
kill_signal = None
|
|
||||||
|
|
||||||
def __init__(self, timeout=WATCHDOG_TIMEOUT, kill_timeout=KILL_TIMEOUT):
|
def __init__(self, timeout=WATCHDOG_TIMEOUT, kill_timeout=KILL_TIMEOUT):
|
||||||
|
self.shared_heartbeat = Value('d', 0.0)
|
||||||
|
self.kill_signal = None
|
||||||
self.timeout = timeout
|
self.timeout = timeout
|
||||||
self.kill_timeout = kill_timeout
|
self.kill_timeout = kill_timeout
|
||||||
self.heartbeat()
|
self.heartbeat()
|
||||||
|
Loading…
Reference in New Issue
Block a user