vici: Signal waiting threads when skipping disconnected connections

If two threads are waiting in find_entry() and remove_entry(),
respectively, and the former is woken first, the latter remains stuck
as it won't get signaled.
This commit is contained in:
Tobias Brunner 2021-05-07 15:32:49 +02:00
parent b0e2187b6b
commit eec3bdb04a
1 changed files with 1 additions and 0 deletions

View File

@ -191,6 +191,7 @@ static entry_t* find_entry(private_vici_socket_t *this, stream_t *stream,
}
if (entry->disconnecting)
{
entry->cond->signal(entry->cond);
continue;
}
candidate = TRUE;