Solved a race condition bug in the controller causing it not to exit properly.
This commit is contained in:
parent
fdae70afa3
commit
aee5528149
1 changed files with 2 additions and 9 deletions
|
@ -271,20 +271,13 @@ void CheckStats(JSON::Value & stats){
|
|||
if (u_it->second.isMember("now") && u_it->second["now"].asInt() < nowtime - 3){
|
||||
jit->second["log"].append(u_it->second);
|
||||
jit->second["curr"].removeMember(u_it->first);
|
||||
if (jit->second["curr"].size() < 1){
|
||||
break;
|
||||
}else{
|
||||
if (jit->second["curr"].ObjBegin() != u_it){
|
||||
u_it--;
|
||||
}else{
|
||||
if (!jit->second["curr"].size()){break;}
|
||||
u_it = jit->second["curr"].ObjBegin();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void CheckAllStreams(JSON::Value & data){
|
||||
|
|
Loading…
Add table
Reference in a new issue