Restart multimon on broken input

This commit is contained in:
Jan Speller 2022-10-19 11:40:19 +00:00
parent fc39b15d54
commit dbf552f680
2 changed files with 10 additions and 0 deletions

View file

@ -48,6 +48,11 @@ class LineInInput(InputBase):
if not lineInProc.isRunning:
logging.warning("asla was down - try to restart")
lineInProc.start()
if lineInProc.isRunning:
logging.info("rtl_fm is back up - restarting multimon...")
mmProc.setStdin(lineInProc.stdout)
mmProc.start()
elif not mmProc.isRunning:
logging.warning("multimon was down - try to restart")
mmProc.start()