wait until all IKE_SAs are in-house before destroying them
This commit is contained in:
1 parent
f55a7a76dd
commit
f2bd424c89
1 file changed
+1
-1
@@ -1513,7 +1513,7 @@ static void flush(private_ike_sa_manager_t *this)
|
|||||||
enumerator = create_table_enumerator(this);
|
enumerator = create_table_enumerator(this);
|
||||||
while (enumerator->enumerate(enumerator, &entry, &segment))
|
while (enumerator->enumerate(enumerator, &entry, &segment))
|
||||||
{
|
{
|
||||||
while (entry->waiting_threads)
|
while (entry->waiting_threads || entry->checked_out)
|
||||||
{
|
{
|
||||||
/* wake up all */
|
/* wake up all */
|
||||||
entry->condvar->broadcast(entry->condvar);
|
entry->condvar->broadcast(entry->condvar);
|
||||||
|
|||||||
Reference in new issue
Block a user