If there's only a single worker, do not block after accept treshold has been

reached
This commit is contained in:
Joris Vink 2013-11-01 22:37:59 +01:00
parent 2aa4edb04e
commit c80e1d3767
1 changed files with 3 additions and 1 deletions

View File

@ -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;