ts_fsm: Properly cleanup the FSM on cleanup.
Though it looks like this code is never actually executed because TS in the current model TS FSM instances are created on the BTS structure allocation and are never destroyed. Change-Id: Ie642d201c7b1333321319cd5220c9778d7e6138e
This commit is contained in:
parent
b629c465fc
commit
1325c67ffd
|
@ -794,7 +794,11 @@ static void ts_fsm_allstate(struct osmo_fsm_inst *fi, uint32_t event, void *data
|
|||
|
||||
static void ts_fsm_cleanup(struct osmo_fsm_inst *fi, enum osmo_fsm_term_cause cause)
|
||||
{
|
||||
LOG_TS(ts, LOGL_DEBUG, "cleaning up with cause %d\n", cause);
|
||||
struct gsm_bts_trx_ts *ts = ts_fi_ts(fi);
|
||||
_count_borken_on_teardown(fi);
|
||||
ts_terminate_lchan_fsms(ts);
|
||||
ts->fi = NULL;
|
||||
}
|
||||
|
||||
#define S(x) (1 << (x))
|
||||
|
|
Loading…
Reference in New Issue