diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-04-09 12:44:21 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-04-09 12:44:21 +0200 |
commit | 8da710307015955bc2540c6d03c7e8f99fc45981 (patch) | |
tree | 1813ebee82ad04a9e5d1ecad92e55867d069e0fb /openbsc/src/chan_alloc.c | |
parent | f73f6fad8caf709774b10cb579695fa579254364 (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.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/src/chan_alloc.c b/openbsc/src/chan_alloc.c index 5ca47f909..08d9b85ac 100644 --- a/openbsc/src/chan_alloc.c +++ b/openbsc/src/chan_alloc.c @@ -343,6 +343,7 @@ int _lchan_release(struct gsm_lchan *lchan, u_int8_t release_reason) 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, release_reason); return 1; } |