aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2022-05-02 19:38:26 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2022-05-03 10:27:19 +0200
commit6b51f3d7253b105a51940347fd8a8d223220ce92 (patch)
treed824d37822ccb8af7655a95f8571ef1cbdc7daec
parent1ddafb378129aae71a2e000e492e956d98a665cb (diff)
paging: Flush pending paging requests when bts obj freed
-rw-r--r--src/osmo-bsc/paging.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/osmo-bsc/paging.c b/src/osmo-bsc/paging.c
index 2ba0fcbc7..12937397f 100644
--- a/src/osmo-bsc/paging.c
+++ b/src/osmo-bsc/paging.c
@@ -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);
}