forked from mirrors/kore
Only release accept lock when required.
This commit is contained in:
parent
29fa49ba83
commit
1f938eb818
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue