mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2026-01-02 06:40:09 +01:00
Restart multimon on broken input
This commit is contained in:
parent
fc39b15d54
commit
dbf552f680
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -47,6 +47,11 @@ class PulseAudioInput(InputBase):
|
|||
if not PulseAudioProc.isRunning:
|
||||
logging.warning("PulseAudio was down - try to restart")
|
||||
PulseAudioProc.start()
|
||||
|
||||
if PulseAudioProc.isRunning:
|
||||
logging.info("rtl_fm is back up - restarting multimon...")
|
||||
mmProc.setStdin(PulseAudioProc.stdout)
|
||||
mmProc.start()
|
||||
elif not mmProc.isRunning:
|
||||
logging.warning("multimon was down - try to restart")
|
||||
mmProc.start()
|
||||
|
|
|
|||
Loading…
Reference in a new issue