Fixed autopush adding of streams that are already being pushed autopushing the autopush automatically. Autopush.

This commit is contained in:
Thulinma 2016-05-18 11:46:15 +02:00
parent fe0172efa9
commit a5353b0acd

View file

@ -128,7 +128,10 @@ namespace Controller {
for (std::map<std::string, unsigned int>::iterator it = activeStreams.begin(); it != activeStreams.end(); ++it){ for (std::map<std::string, unsigned int>::iterator it = activeStreams.begin(); it != activeStreams.end(); ++it){
std::string streamname = it->first; std::string streamname = it->first;
if (pStr == streamname || (*pStr.rbegin() == '+' && streamname.substr(0, pStr.size()) == pStr)){ if (pStr == streamname || (*pStr.rbegin() == '+' && streamname.substr(0, pStr.size()) == pStr)){
startPush(streamname, target);
if (!isPushActive(streamname, target)){
startPush(streamname, target);
}
} }
} }
} }