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:
parent
b0e2187b6b
commit
eec3bdb04a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue