osmux: Set conn->type during osmux_init_conn()

It's basically the same code path (one function calls the other), but it
makes a lot more sense to have it in the init function itself.

Change-Id: I63d7dfff451870f708f7cb710d66f4ec786c27d7
This commit is contained in:
Pau Espin 2022-10-06 14:32:56 +02:00
parent 887c93e198
commit 63088e0e61
1 changed files with 1 additions and 1 deletions

View File

@ -494,6 +494,7 @@ int osmux_init_conn(struct mgcp_conn_rtp *conn)
return -1;
conn->osmux.ctrg = rate_ctr_group_alloc(conn->conn, &rate_ctr_group_osmux_desc, conn->ctrg->idx);
conn->type = MGCP_RTP_OSMUX;
conn->osmux.state = OSMUX_STATE_ACTIVATING;
return 0;
}
@ -614,7 +615,6 @@ int conn_osmux_allocate_local_cid(struct mgcp_conn_rtp *conn)
conn->osmux.local_cid = (uint8_t) osmux_cid;
conn->osmux.local_cid_allocated = true;
conn->type = MGCP_RTP_OSMUX;
return osmux_cid;
}