Terminate SOAP request pending when close the session

This commit is contained in:
vemax78 2013-11-02 19:26:52 +01:00
parent 98b81311f5
commit ebd342c3ad
1 changed files with 5 additions and 0 deletions

View File

@ -486,6 +486,11 @@ static void ac_session_destroy(struct ac_session_t* session) {
capwap_lock_enter(&session->sessionlock);
session->count--;
/* Terminate SOAP request pending */
if (session->soaprequest) {
ac_soapclient_shutdown_request(session->soaprequest);
}
/* Check if all reference is release */
while (session->count > 0) {
#ifdef DEBUG