mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2025-12-06 07:12:04 +01:00
Merge pull request #102 from janspeller/bugfix/ISSUE-101-InputSources_Multimon
Issue #101: Restart multimon on broken input
This commit is contained in:
commit
1b95474bc2
|
|
@ -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