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:
@@ -191,6 +191,7 @@ static entry_t* find_entry(private_vici_socket_t *this, stream_t *stream,
|
|||||||
}
|
}
|
||||||
if (entry->disconnecting)
|
if (entry->disconnecting)
|
||||||
{
|
{
|
||||||
|
entry->cond->signal(entry->cond);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
candidate = TRUE;
|
candidate = TRUE;
|
||||||
|
|||||||
Reference in New Issue
Block a user