rtp_stream: sanely cancel MGW endpoint FSM notify

libosmo-mgcp-client recently introduced osmo_mgcpc_ep_cancel_notify() to cancel
notification if a notify target FSM deallocates. Use it for sanity in
rtp_stream FSM cleanup, the notify target for endpoint FSMs.

Depends: I41687d7f3a808587ab7f7520f46dcc3c29cff92d (osmo-mgw)
	 I14f7a46031327fb2b2047b998eae6ad0bb7324ad (osmo-mgw)
Change-Id: I351bb8e8fbc46eb629bcd599f6453e2c84c15015
This commit is contained in:
Neels Hofmeyr 2019-10-05 01:14:41 +02:00
parent 33f71a1200
commit 523b92f3aa
1 changed files with 1 additions and 0 deletions

View File

@ -220,6 +220,7 @@ static void rtp_stream_fsm_cleanup(struct osmo_fsm_inst *fi, enum osmo_fsm_term_
{
struct rtp_stream *rtps = fi->priv;
if (rtps->ci) {
osmo_mgcpc_ep_cancel_notify(osmo_mgcpc_ep_ci_ep(rtps->ci), fi);
osmo_mgcpc_ep_ci_dlcx(rtps->ci);
rtps->ci = NULL;
}