ike: Keep track of send keepalive jobs to avoid scheduling more than one per IKE_SA

This commit is contained in:
Tobias Brunner
2016-03-03 17:15:37 +01:00
parent 34f7d3b7ae
commit efd7fa7be1
3 changed files with 24 additions and 11 deletions
@@ -54,7 +54,7 @@ METHOD(job_t, execute, job_requeue_t,
this->ike_sa_id);
if (ike_sa)
{
ike_sa->send_keepalive(ike_sa);
ike_sa->send_keepalive(ike_sa, TRUE);
charon->ike_sa_manager->checkin(charon->ike_sa_manager, ike_sa);
}
return JOB_REQUEUE_NONE;