Tweaked Util::Procs exit handler timings.
This commit is contained in:
parent
2730aee682
commit
06f023f3df
1 changed files with 4 additions and 4 deletions
|
@ -31,8 +31,8 @@ bool Util::Procs::handler_set = false;
|
|||
void Util::Procs::exit_handler(){
|
||||
int waiting = 0;
|
||||
while ( !plist.empty()){
|
||||
Util::sleep(500);
|
||||
if (++waiting > 5){
|
||||
Util::sleep(100);
|
||||
if (++waiting > 25){
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -47,8 +47,8 @@ void Util::Procs::exit_handler(){
|
|||
|
||||
waiting = 0;
|
||||
while ( !plist.empty()){
|
||||
Util::sleep(500);
|
||||
if (++waiting > 10){
|
||||
Util::sleep(200);
|
||||
if (++waiting > 25){
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue