1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-11-24 08:22:59 +01:00

check number of available workers

This commit is contained in:
Nikolay Kim 2018-03-16 11:17:27 -07:00
parent 52b3b0c362
commit b15b5e5246

View File

@ -744,6 +744,11 @@ fn start_accept_thread(
workers[next].0, info.clone()));
msg = err.into_inner();
workers.swap_remove(next);
if workers.is_empty() {
break
} else if workers.len() <= next {
next = 0;
}
continue
}
}