diff options
-rw-r--r-- | agent/agent.c | 11 | ||||
-rw-r--r-- | agent/conncheck.c | 5 |
2 files changed, 6 insertions, 10 deletions
diff --git a/agent/agent.c b/agent/agent.c index dbece3b..89e3514 100644 --- a/agent/agent.c +++ b/agent/agent.c @@ -2547,9 +2547,8 @@ priv_add_new_candidate_discovery_turn (NiceAgent *agent, if (nicesock == NULL) return; - if (agent->reliable) - nice_socket_set_writable_callback (nicesock, _tcp_sock_is_writable, - component); + nice_socket_set_writable_callback (nicesock, _tcp_sock_is_writable, component); + if (turn->type == NICE_RELAY_TYPE_TURN_TLS && agent->compatibility == NICE_COMPATIBILITY_GOOGLE) { nicesock = nice_pseudossl_socket_new (nicesock, @@ -3033,10 +3032,8 @@ nice_agent_gather_candidates ( found_local_address = TRUE; nice_address_set_port (addr, 0); - - if (agent->reliable) - nice_socket_set_writable_callback (host_candidate->sockptr, - _tcp_sock_is_writable, component); + nice_socket_set_writable_callback (host_candidate->sockptr, + _tcp_sock_is_writable, component); #ifdef HAVE_GUPNP if (agent->upnp_enabled && agent->upnp && diff --git a/agent/conncheck.c b/agent/conncheck.c index 19729c2..64a3cb8 100644 --- a/agent/conncheck.c +++ b/agent/conncheck.c @@ -2669,9 +2669,8 @@ int conn_check_send (NiceAgent *agent, CandidateCheckPair *pair) pair->sockptr = new_socket; _priv_set_socket_tos (agent, pair->sockptr, stream2->tos); - if (agent->reliable) - nice_socket_set_writable_callback (pair->sockptr, - _tcp_sock_is_writable, component2); + nice_socket_set_writable_callback (pair->sockptr, _tcp_sock_is_writable, + component2); nice_component_attach_socket (component2, new_socket); } |