mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2026-04-03 19:35:04 +02: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:
|
if not lineInProc.isRunning:
|
||||||
logging.warning("asla was down - try to restart")
|
logging.warning("asla was down - try to restart")
|
||||||
lineInProc.start()
|
lineInProc.start()
|
||||||
|
|
||||||
|
if lineInProc.isRunning:
|
||||||
|
logging.info("rtl_fm is back up - restarting multimon...")
|
||||||
|
mmProc.setStdin(lineInProc.stdout)
|
||||||
|
mmProc.start()
|
||||||
elif not mmProc.isRunning:
|
elif not mmProc.isRunning:
|
||||||
logging.warning("multimon was down - try to restart")
|
logging.warning("multimon was down - try to restart")
|
||||||
mmProc.start()
|
mmProc.start()
|
||||||
|
|
|
||||||
|
|
@ -47,6 +47,11 @@ class PulseAudioInput(InputBase):
|
||||||
if not PulseAudioProc.isRunning:
|
if not PulseAudioProc.isRunning:
|
||||||
logging.warning("PulseAudio was down - try to restart")
|
logging.warning("PulseAudio was down - try to restart")
|
||||||
PulseAudioProc.start()
|
PulseAudioProc.start()
|
||||||
|
|
||||||
|
if PulseAudioProc.isRunning:
|
||||||
|
logging.info("rtl_fm is back up - restarting multimon...")
|
||||||
|
mmProc.setStdin(PulseAudioProc.stdout)
|
||||||
|
mmProc.start()
|
||||||
elif not mmProc.isRunning:
|
elif not mmProc.isRunning:
|
||||||
logging.warning("multimon was down - try to restart")
|
logging.warning("multimon was down - try to restart")
|
||||||
mmProc.start()
|
mmProc.start()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue