Fixed controller crash when deleting old stream data.
This commit is contained in:
parent
984a422279
commit
860fbe0b53
1 changed files with 1 additions and 0 deletions
|
@ -257,6 +257,7 @@ void CheckStats(JSON::Value & stats){
|
|||
for (JSON::ObjIter jit = stats.ObjBegin(); jit != stats.ObjEnd(); jit++){
|
||||
if (currTime - lastBuffer[jit->first] > 120){
|
||||
stats.removeMember(jit->first);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue