Fix stats not disappearing
This commit is contained in:
parent
c548077282
commit
a3a40dbf17
1 changed files with 2 additions and 2 deletions
|
@ -669,10 +669,10 @@ void Controller::fillActive(JSON::Value & req, JSON::Value & rep, bool onlyNow){
|
||||||
//check all sessions
|
//check all sessions
|
||||||
if (sessions.size()){
|
if (sessions.size()){
|
||||||
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 (onlyNow || it->second.isViewerOn(t)){
|
if (onlyNow || it->second.hasDataFor(t)){
|
||||||
streams.insert(it->first.streamName);
|
streams.insert(it->first.streamName);
|
||||||
}
|
}
|
||||||
if (it->second.isViewerOn(t)){
|
if (it->second.hasDataFor(t) && it->second.isViewerOn(t)){
|
||||||
streams.insert(it->first.streamName);
|
streams.insert(it->first.streamName);
|
||||||
clients[it->first.streamName]++;
|
clients[it->first.streamName]++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue