Improved on/off display for streams.
This commit is contained in:
parent
24c17e9466
commit
c9a30c2816
1 changed files with 1 additions and 1 deletions
|
@ -447,7 +447,7 @@ bool Controller::hasViewers(std::string streamName){
|
||||||
if (sessions.size()){
|
if (sessions.size()){
|
||||||
long long currTime = Util::epoch();
|
long long currTime = Util::epoch();
|
||||||
for (std::map<sessIndex, statSession>::iterator it = sessions.begin(); it != sessions.end(); it++){
|
for (std::map<sessIndex, statSession>::iterator it = sessions.begin(); it != sessions.end(); it++){
|
||||||
if (it->first.streamName == streamName && it->second.hasDataFor(currTime)){
|
if (it->first.streamName == streamName && (it->second.hasDataFor(currTime) || it->second.hasDataFor(currTime-1))){
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue