Only release accept lock when required.

This commit is contained in:
Joris Vink 2013-07-15 11:12:05 +02:00
parent 29fa49ba83
commit 1f938eb818
1 changed files with 1 additions and 1 deletions

View File

@ -222,7 +222,7 @@ kore_worker_entry(struct kore_worker *kw)
kore_platform_event_wait();
if (((worker->accepted >= worker->accept_treshold) ||
(worker_active_connections < worker_max_connections)) &&
(worker_active_connections >= worker_max_connections)) &&
worker->has_lock) {
worker->accepted = 0;
kore_worker_acceptlock_release();