mirror of
https://github.com/ha7ilm/openwebrx.git
synced 2026-01-23 00:30:21 +01:00
add a safety net timeout for feature checks
This commit is contained in:
parent
8d2671fadb
commit
687bf1c3d2
|
|
@ -165,7 +165,14 @@ class FeatureDetector(object):
|
|||
cwd=tmp_dir,
|
||||
env=env,
|
||||
)
|
||||
rc = process.wait()
|
||||
while True:
|
||||
try:
|
||||
rc = process.wait(10)
|
||||
break
|
||||
except subprocess.TimeoutExpired:
|
||||
logger.warning("feature check command \"%s\" did not return after 10 seconds!", command)
|
||||
process.kill()
|
||||
|
||||
if expected_result is None:
|
||||
return rc != 32512
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue