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:
1 parent
b0e2187b6b
commit
eec3bdb04a
1 file changed
+1
@@ -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