mirror of https://git.kore.io/kore.git
If there's only a single worker, do not block after accept treshold has been
reached
This commit is contained in:
parent
2aa4edb04e
commit
c80e1d3767
|
@ -381,8 +381,10 @@ kore_worker_wait(int final)
|
|||
void
|
||||
kore_worker_acceptlock_release(void)
|
||||
{
|
||||
if (worker_count == 1)
|
||||
if (worker_count == 1) {
|
||||
worker->accepted = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
if (worker->has_lock != 1)
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue