Commit 844d2e72 authored by Youness Alaoui's avatar Youness Alaoui Committed by Olivier Crête

Once a ice-tcp connection is established, it should work like any other, so just send to it

parent 2dea9ea9
...@@ -3515,8 +3515,8 @@ nice_agent_send_messages_nonblocking_internal ( ...@@ -3515,8 +3515,8 @@ nice_agent_send_messages_nonblocking_internal (
nice_address_get_port (&component->selected_pair.remote->addr)); nice_address_get_port (&component->selected_pair.remote->addr));
} }
if(agent->reliable) { if(agent->reliable &&
if (!nice_socket_is_reliable (component->selected_pair.local->sockptr)) { !nice_socket_is_reliable (component->selected_pair.local->sockptr)) {
if (component->tcp != NULL) { if (component->tcp != NULL) {
/* Send on the pseudo-TCP socket. */ /* Send on the pseudo-TCP socket. */
n_sent = pseudo_tcp_socket_send_messages (component->tcp, messages, n_sent = pseudo_tcp_socket_send_messages (component->tcp, messages,
...@@ -3534,10 +3534,6 @@ nice_agent_send_messages_nonblocking_internal ( ...@@ -3534,10 +3534,6 @@ nice_agent_send_messages_nonblocking_internal (
g_set_error (&child_error, G_IO_ERROR, G_IO_ERROR_FAILED, g_set_error (&child_error, G_IO_ERROR, G_IO_ERROR_FAILED,
"Pseudo-TCP socket not connected."); "Pseudo-TCP socket not connected.");
} }
} else {
g_set_error (&child_error, G_IO_ERROR, G_IO_ERROR_FAILED,
"ICE-TCP not yet supported.");
}
} else { } else {
NiceSocket *sock; NiceSocket *sock;
NiceAddress *addr; NiceAddress *addr;
......
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