Tweaked Util::Procs exit handler timings.

This commit is contained in:
Thulinma 2013-03-24 20:18:22 +01:00
parent 2730aee682
commit 06f023f3df

View file

@ -31,8 +31,8 @@ bool Util::Procs::handler_set = false;
void Util::Procs::exit_handler(){ void Util::Procs::exit_handler(){
int waiting = 0; int waiting = 0;
while ( !plist.empty()){ while ( !plist.empty()){
Util::sleep(500); Util::sleep(100);
if (++waiting > 5){ if (++waiting > 25){
break; break;
} }
} }
@ -47,8 +47,8 @@ void Util::Procs::exit_handler(){
waiting = 0; waiting = 0;
while ( !plist.empty()){ while ( !plist.empty()){
Util::sleep(500); Util::sleep(200);
if (++waiting > 10){ if (++waiting > 25){
break; break;
} }
} }