diff options
Diffstat (limited to 'agent')
-rw-r--r-- | agent/conncheck.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/agent/conncheck.c b/agent/conncheck.c index 11ef9c9..9618c3a 100644 --- a/agent/conncheck.c +++ b/agent/conncheck.c @@ -442,7 +442,11 @@ static gboolean priv_conn_check_initiate (NiceAgent *agent, CandidateCheckPair * { pair->state = NICE_CHECK_IN_PROGRESS; nice_debug ("Agent %p : pair %p state IN_PROGRESS", agent, pair); - conn_check_send (agent, pair); + if (conn_check_send (agent, pair)) { + pair->state = NICE_CHECK_FAILED; + nice_debug ("Agent %p : pair %p state FAILED", agent, pair); + return FALSE; + } return TRUE; } @@ -1070,7 +1074,11 @@ static gboolean priv_conn_check_tick_unlocked (NiceAgent *agent) if (pair) { priv_print_conn_check_lists (agent, G_STRFUNC, ", got a pair from triggered check list"); - conn_check_send (agent, pair); + if (conn_check_send (agent, pair)) { + pair->state = NICE_CHECK_FAILED; + nice_debug ("Agent %p : pair %p state FAILED", agent, pair); + return FALSE; + } return TRUE; } |