Fixed controller restarting always-on streams when they were, in fact, still on.
This commit is contained in:
parent
1fff195f77
commit
cff43da016
1 changed files with 2 additions and 1 deletions
|
@ -106,7 +106,8 @@ namespace Controller{
|
|||
if (program){inputProcesses[name] = program;}
|
||||
}
|
||||
// new style always on
|
||||
if (data.isMember("always_on") && data["always_on"].asBool()){
|
||||
if (data.isMember("always_on") && data["always_on"].asBool() &&
|
||||
(!inputProcesses.count(name) || !Util::Procs::isRunning(inputProcesses[name]))){
|
||||
INFO_MSG("Starting always-on input %s: %s", name.c_str(), URL.c_str());
|
||||
std::map<std::string, std::string> empty_overrides;
|
||||
pid_t program = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue