mirror of
https://github.com/jketterl/openwebrx.git
synced 2026-04-08 07:55:36 +00:00
detect device failure
This commit is contained in:
parent
9be0664e14
commit
95ac5aeb7d
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue