local->foundation, remote->foundation);
priv_add_new_check_pair (agent, stream_id, component, local, remote,
initial_state, FALSE);
- if (component->state < NICE_COMPONENT_STATE_CONNECTED) {
+ if (component->state == NICE_COMPONENT_STATE_CONNECTED ||
+ component->state == NICE_COMPONENT_STATE_READY) {
agent_signal_component_state_change (agent,
stream_id,
component->id,
- NICE_COMPONENT_STATE_CONNECTING);
+ NICE_COMPONENT_STATE_CONNECTED);
} else {
agent_signal_component_state_change (agent,
stream_id,
component->id,
- NICE_COMPONENT_STATE_CONNECTED);
+ NICE_COMPONENT_STATE_CONNECTING);
}
}