Avoid queueing more than one retry initiate job.

This commit is contained in:
Tobias Brunner
2012-05-30 15:32:52 +02:00
parent 60c82591c5
commit 77e4282643
3 changed files with 35 additions and 4 deletions
@@ -54,7 +54,7 @@ METHOD(job_t, execute, void,
}
else
{
if (ike_sa->initiate(ike_sa, NULL, 0, NULL, NULL) == DESTROY_ME)
if (ike_sa->retry_initiate(ike_sa) == DESTROY_ME)
{
charon->ike_sa_manager->checkin_and_destroy(charon->ike_sa_manager,
ike_sa);