Don't queue delete_ike_sa job when setting IKE_DELETING.
[strongswan.git] / src / libcharon / sa / ike_sa.c
index fc69ecb..926e2d1 100644 (file)
@@ -678,14 +678,6 @@ METHOD(ike_sa_t, set_state, void,
                        }
                        break;
                }
-               case IKE_DELETING:
-               {
-                       /* delete may fail if a packet gets lost, so set a timeout */
-                       job_t *job = (job_t*)delete_ike_sa_job_create(this->ike_sa_id, TRUE);
-                       lib->scheduler->schedule_job(lib->scheduler, job,
-                                                                                HALF_OPEN_IKE_SA_TIMEOUT);
-                       break;
-               }
                default:
                        break;
        }