paging: Flush pending paging requests when bts obj freed

Change-Id: I3a81eda48cd44c70a2a690a0814a296ba22eaa8e
This commit is contained in:
Pau Espin 2022-05-02 19:38:26 +02:00
parent 1ddafb3781
commit 6b51f3d725
1 changed files with 1 additions and 0 deletions

View File

@ -311,6 +311,7 @@ void paging_init(struct gsm_bts *bts)
/* Called upon the bts struct being freed */
void paging_destructor(struct gsm_bts *bts)
{
paging_flush_bts(bts, NULL);
osmo_timer_del(&bts->paging.credit_timer);
osmo_timer_del(&bts->paging.work_timer);
}