aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/chan_alloc.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-04-10 00:14:55 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-04-10 00:14:55 +0200
commit63d18b51a7fe76e05a0a3167205c5d61205fca98 (patch)
treefc8b0f5a4744f7dff27d34c6840224cd12de3e9e /openbsc/src/chan_alloc.c
parent74419497fccc93ef5acf6bc0d64f683c8bf25617 (diff)
[rsl] Set the release state from within the lchan class
Currently our GSM04.11 code is closing the link for SAPI=3 and this would mean that the whole channel would be scheduled for close... where we only want to close everything when freeing the lchan or handling an error.
Diffstat (limited to 'openbsc/src/chan_alloc.c')
-rw-r--r--openbsc/src/chan_alloc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/src/chan_alloc.c b/openbsc/src/chan_alloc.c
index cd48e4359..118deca10 100644
--- a/openbsc/src/chan_alloc.c
+++ b/openbsc/src/chan_alloc.c
@@ -348,6 +348,7 @@ int lchan_auto_release(struct gsm_lchan *lchan)
lchan->conn.use_count);
DEBUGP(DRLL, "%s Recycling Channel\n", gsm_lchan_name(lchan));
+ rsl_lchan_set_state(lchan, LCHAN_S_REL_REQ);
rsl_release_request(lchan, 0);
return 1;
}