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(){
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;
}
}