nghttpx: Fix bug that worker process never exit
This commit is contained in:
parent
6d29de0f1e
commit
1feeda4514
|
@ -596,7 +596,7 @@ CloseWait::~CloseWait() {
|
||||||
--worker_stat->num_close_waits;
|
--worker_stat->num_close_waits;
|
||||||
|
|
||||||
if (worker->get_graceful_shutdown() && worker_stat->num_connections == 0 &&
|
if (worker->get_graceful_shutdown() && worker_stat->num_connections == 0 &&
|
||||||
worker_stat->num_close_waits) {
|
worker_stat->num_close_waits == 0) {
|
||||||
ev_break(loop);
|
ev_break(loop);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue