Commit 8fe85705 authored by Youness Alaoui's avatar Youness Alaoui Committed by Olivier Crête

Factor out pseudotcp so it's not used if the transport is already reliable

parent 535701b0
This diff is collapsed.
......@@ -490,10 +490,11 @@ nice_output_stream_is_writable (GPollableOutputStream *stream)
priv->stream_id);
goto done;
}
/* If it’s a reliable agent, see if there’s any space in the pseudo-TCP output
* buffer. */
if (component->tcp != NULL) {
if (component->selected_pair.local != NULL) {
/* If it’s a reliable agent, see if there’s any space in the pseudo-TCP
* output buffer. */
if (!nice_socket_is_reliable (component->selected_pair.local->sockptr) &&
component->tcp != NULL) {
retval = pseudo_tcp_socket_can_send (component->tcp);
goto done;
}
......@@ -508,6 +509,7 @@ nice_output_stream_is_writable (GPollableOutputStream *stream)
break;
}
}
}
done:
agent_unlock ();
......
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