From a3a40dbf17bfa2ac0907f7eb230114c694320346 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Thu, 14 Apr 2016 16:32:17 +0200 Subject: [PATCH] Fix stats not disappearing --- src/controller/controller_statistics.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]++; }