Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[lte][agw] Remove paging timer when ue context is removed #4302

Merged
merged 2 commits into from
Jan 8, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 16 additions & 0 deletions lte/gateway/c/oai/tasks/mme_app/mme_app_context.c
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,22 @@ void mme_app_ue_context_free_content(ue_mm_context_t* const ue_context_p) {
ue_context_p->ulr_response_timer.id = MME_APP_TIMER_INACTIVE_ID;
}

// Stop paging response timer if running
if (ue_context_p->paging_response_timer.id != MME_APP_TIMER_INACTIVE_ID) {
timer_argP = NULL;
if (timer_remove(
ue_context_p->paging_response_timer.id, (void**) &timer_argP)) {
OAILOG_ERROR_UE(
LOG_MME_APP, ue_context_p->emm_context._imsi64,
"Failed to stop Paging Response timer for UE id %d \n",
ue_context_p->mme_ue_s1ap_id);
}
if (timer_argP) {
free_wrapper((void**) &timer_argP);
}
ue_context_p->paging_response_timer.id = MME_APP_TIMER_INACTIVE_ID;
}

if (ue_context_p->sgs_context != NULL) {
// free the sgs context
mme_app_ue_sgs_context_free_content(
Expand Down