path: root/openbsc/src/chan_alloc.c
diff options
authorSylvain Munaut <246tnt@gmail.com>2009-12-21 01:11:25 +0100
committerHarald Welte <laforge@gnumonks.org>2009-12-21 01:11:25 +0100
commitf77af1fb302ba624bf401c56104a16d79e221916 (patch)
tree8ab4c1c7b94909dab21b3064f169f07395bc4a59 /openbsc/src/chan_alloc.c
parentd5778fc4c7497e1b7310811c881f8cb21b742ec8 (diff)
chan_alloc: Delete T3101 on lchan_free as well
If a RF channel is assigned but no response is ever heard from the phone, we will receive a CONNECTION FAIL from the BTS, triggering a RF release freeing the channel. Then sometime later, T3101 will expire as well and free the channel again ... Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'openbsc/src/chan_alloc.c')
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/src/chan_alloc.c b/openbsc/src/chan_alloc.c
index 786e8b11b..a23192ae6 100644
--- a/openbsc/src/chan_alloc.c
+++ b/openbsc/src/chan_alloc.c
@@ -251,6 +251,7 @@ void lchan_free(struct gsm_lchan *lchan)
/* stop the timer */
+ bsc_del_timer(&lchan->T3101);
/* clear cached measuement reports */
lchan->meas_rep_idx = 0;