diff --git a/src/controller/controller_statistics.cpp b/src/controller/controller_statistics.cpp index 9305fb81..ddb19cc9 100644 --- a/src/controller/controller_statistics.cpp +++ b/src/controller/controller_statistics.cpp @@ -447,7 +447,7 @@ bool Controller::hasViewers(std::string streamName){ if (sessions.size()){ long long currTime = Util::epoch(); for (std::map::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; } }