diff --git a/src/controller/controller_statistics.cpp b/src/controller/controller_statistics.cpp index c8034f89..147ae02a 100644 --- a/src/controller/controller_statistics.cpp +++ b/src/controller/controller_statistics.cpp @@ -669,10 +669,10 @@ void Controller::fillActive(JSON::Value & req, JSON::Value & rep, bool onlyNow){ //check all sessions if (sessions.size()){ for (std::map::iterator it = sessions.begin(); it != sessions.end(); it++){ - if (onlyNow || it->second.isViewerOn(t)){ + if (onlyNow || it->second.hasDataFor(t)){ streams.insert(it->first.streamName); } - if (it->second.isViewerOn(t)){ + if (it->second.hasDataFor(t) && it->second.isViewerOn(t)){ streams.insert(it->first.streamName); clients[it->first.streamName]++; }