Fixed controller crash when deleting old stream data.

This commit is contained in:
Thulinma 2012-08-26 23:17:20 +02:00
parent 984a422279
commit 860fbe0b53

View file

@ -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;
}
}
}