Commit 2987f2ec authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Do not save ICE candidate pair role on retransmission.

parent 8695965b
......@@ -510,13 +510,12 @@ static void ice_send_binding_request(IceCheckList *cl, IceCandidatePair *pair, R
memcpy(&pair->transactionID, &msg.msgHdr.tr_id, sizeof(pair->transactionID));
sendMessage(socket, buf, len, dest.addr, dest.port);
/* Save the role of the agent. */
pair->role = cl->session->role;
if (pair->state != ICP_InProgress) {
/* First transmission of the request, initialize the retransmission timer. */
pair->rto = ICE_DEFAULT_RTO_DURATION;
pair->retransmissions = 0;
/* Save the role of the agent. */
pair->role = cl->session->role;
/* Change the state of the pair. */
ice_pair_set_state(pair, ICP_InProgress);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment