Flush task queues explicitly, not implicitly if task returns ALREADY_DONE
[strongswan.git] / src / libcharon / sa / ikev1 / tasks / quick_delete.c
index 6e4194e..db48bc5 100644 (file)
@@ -137,6 +137,7 @@ METHOD(task_t, build_i, status_t,
 
                return SUCCESS;
        }
+       this->ike_sa->flush_queue(this->ike_sa, TASK_QUEUE_ACTIVE);
        return ALREADY_DONE;
 }