Fixed a few config semaphore locks in Pro edition

This commit is contained in:
Thulinma 2017-05-16 15:42:13 +02:00
parent baf5c79436
commit d2b020072c

View file

@ -167,6 +167,7 @@ bool Util::startInput(std::string streamname, std::string filename, bool forkFir
}
/*LTS-START*/
if (config.getMember("hardlimit_active")) {
configLock.post();//unlock the config semaphore
return false;
}
/*LTS-END*/
@ -180,10 +181,12 @@ bool Util::startInput(std::string streamname, std::string filename, bool forkFir
/*LTS-START*/
if (!filename.size()){
if (stream_cfg && stream_cfg.getMember("hardlimit_active")) {
configLock.post();//unlock the config semaphore
return false;
}
if(Triggers::shouldTrigger("STREAM_LOAD", smp)){
if (!Triggers::doTrigger("STREAM_LOAD", streamname, smp)){
configLock.post();//unlock the config semaphore
return false;
}
}