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-06-21 09:59:15 +02:00
parent b0e2187b6b
commit eec3bdb04a
+1
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;