[PATCH] osmo-msc[master]: libmsc: Bump conn FSM on trans_free()

daniel gerrit-no-reply at lists.osmocom.org
Thu Feb 15 16:53:47 UTC 2018

Review at  https://gerrit.osmocom.org/6504

libmsc: Bump conn FSM on trans_free()

Bumping the conn ensures that the subscriber connection will be closed
if necessary.

Change-Id: I131313aa326dd01b3e81e1ade18a4afd32385c15
M src/libmsc/transaction.c
1 file changed, 4 insertions(+), 1 deletion(-)

  git pull ssh://gerrit.osmocom.org:29418/osmo-msc refs/changes/04/6504/1

diff --git a/src/libmsc/transaction.c b/src/libmsc/transaction.c
index f500326..699ca27 100644
--- a/src/libmsc/transaction.c
+++ b/src/libmsc/transaction.c
@@ -141,8 +141,11 @@
-	if (trans->conn)
+	if (trans->conn) {
 		msc_subscr_conn_put(trans->conn, conn_usage_token);
+		if (trans->conn->conn_fsm)
+			osmo_fsm_inst_dispatch(trans->conn->conn_fsm, SUBSCR_CONN_E_BUMP, NULL);
+	}
 	trans->conn = NULL;

To view, visit https://gerrit.osmocom.org/6504
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I131313aa326dd01b3e81e1ade18a4afd32385c15
Gerrit-PatchSet: 1
Gerrit-Project: osmo-msc
Gerrit-Branch: master
Gerrit-Owner: daniel <dwillmann at sysmocom.de>

More information about the gerrit-log mailing list