Changed default response for Input::isAlwaysOn for non-devel builds from true to false.

This commit is contained in:
Thulinma 2018-02-12 10:57:27 +01:00
parent 42b9ec08af
commit f6bba2f729

View file

@ -382,6 +382,7 @@ namespace Mist {
///Checks in the server configuration if this stream is set to always on or not. ///Checks in the server configuration if this stream is set to always on or not.
/// Returns true if it is, or if the stream could not be found in the configuration. /// Returns true if it is, or if the stream could not be found in the configuration.
/// If the compiled default debug level is < INFO, instead returns false if the stream is not found.
bool Input::isAlwaysOn(){ bool Input::isAlwaysOn(){
bool ret = true; bool ret = true;
std::string strName = streamName.substr(0, (streamName.find_first_of("+ "))); std::string strName = streamName.substr(0, (streamName.find_first_of("+ ")));
@ -393,6 +394,10 @@ namespace Mist {
if (!streamCfg.getMember("always_on") || !streamCfg.getMember("always_on").asBool()){ if (!streamCfg.getMember("always_on") || !streamCfg.getMember("always_on").asBool()){
ret = false; ret = false;
} }
}else{
#if DEBUG < DLVL_DEVEL
ret = false;
#endif
} }
configLock.post(); configLock.post();
return ret; return ret;