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:
parent
887c93e198
commit
63088e0e61
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue