MistInTS now shuts down after 20 seconds of no data
This commit is contained in:
parent
cd39965701
commit
69bb08a10a
2 changed files with 9 additions and 2 deletions
|
@ -180,7 +180,7 @@ namespace Controller {
|
|||
jsonForEach(in, jit) {
|
||||
if (out.isMember(jit.key())){
|
||||
if ( !streamsEqual((*jit), out[jit.key()])){
|
||||
/*LTS-START*/
|
||||
/*LTS-START*/
|
||||
if(Triggers::shouldTrigger("STREAM_CONFIG")){
|
||||
std::string payload = jit.key()+"\n"+jit->toString();
|
||||
if (!Triggers::doTrigger("STREAM_CONFIG", payload, jit.key())){
|
||||
|
@ -193,7 +193,7 @@ namespace Controller {
|
|||
Log("STRM", std::string("Updated stream ") + jit.key());
|
||||
}
|
||||
}else{
|
||||
/*LTS-START*/
|
||||
/*LTS-START*/
|
||||
if(Triggers::shouldTrigger("STREAM_ADD")){
|
||||
std::string payload = jit.key()+"\n"+jit->toString();
|
||||
if (!Triggers::doTrigger("STREAM_ADD", payload, jit.key())){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue