mirror of
https://github.com/jketterl/openwebrx.git
synced 2026-01-05 08:10:12 +01:00
detect device failure
This commit is contained in:
parent
9be0664e14
commit
95ac5aeb7d
|
|
@ -183,6 +183,9 @@ class SdrSource(ABC):
|
|||
def wait_for_process_to_end():
|
||||
rc = self.process.wait()
|
||||
logger.debug("shut down with RC={0}".format(rc))
|
||||
if self.getState() == SdrSource.STATE_RUNNING:
|
||||
self.failed = True
|
||||
self.setState(SdrSource.STATE_FAILED)
|
||||
self.monitor = None
|
||||
|
||||
self.monitor = threading.Thread(target=wait_for_process_to_end, name="source_monitor")
|
||||
|
|
|
|||
Loading…
Reference in a new issue