Commit fe96a395 authored by Philip Withnall's avatar Philip Withnall Committed by Olivier Crête

agent: Don’t clear the PseudoTcpSocket on error

Instead, keep the closed object around. This allows differentiation
between the states: TCP support was never initialised; and TCP support
was initialised but is now closed.
parent 1678f370
......@@ -1384,7 +1384,6 @@ static void priv_pseudo_tcp_error (NiceAgent *agent, Stream *stream,
component->id, NICE_COMPONENT_STATE_FAILED);
component_detach_all_sockets (component);
pseudo_tcp_socket_close (component->tcp, TRUE);
g_clear_object (&component->tcp);
}
if (component->tcp_clock) {
......
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