commit | 523b92f3aadb9a63e3048f8fee58d380ced7b7dc | [log] [tgz] |
---|---|---|
author | Neels Hofmeyr <neels@hofmeyr.de> | Sat Oct 05 01:14:41 2019 +0200 |
committer | Neels Hofmeyr <neels@hofmeyr.de> | Fri Nov 01 17:35:17 2019 +0100 |
tree | 7d7e9cef6645596ca24e81bc193c8a354f3793ac | |
parent | 33f71a1200c95c45652130923709b9b17a32e9a6 [diff] |
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
diff --git a/src/libmsc/rtp_stream.c b/src/libmsc/rtp_stream.c index c3880bf..d78743e 100644 --- a/src/libmsc/rtp_stream.c +++ b/src/libmsc/rtp_stream.c
@@ -220,6 +220,7 @@ { 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; }