From f2bd424c899892ba7ccc040c00b8000311f40057 Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Fri, 12 Dec 2008 08:33:48 +0000 Subject: [PATCH] wait until all IKE_SAs are in-house before destroying them --- src/charon/sa/ike_sa_manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/charon/sa/ike_sa_manager.c b/src/charon/sa/ike_sa_manager.c index 66a15501f..4560d8f19 100644 --- a/src/charon/sa/ike_sa_manager.c +++ b/src/charon/sa/ike_sa_manager.c @@ -1513,7 +1513,7 @@ static void flush(private_ike_sa_manager_t *this) enumerator = create_table_enumerator(this); while (enumerator->enumerate(enumerator, &entry, &segment)) { - while (entry->waiting_threads) + while (entry->waiting_threads || entry->checked_out) { /* wake up all */ entry->condvar->broadcast(entry->condvar);