Commit 6cf529b6 authored by Youness Alaoui's avatar Youness Alaoui

Add some debug output when errors happen and the conncheck is cancelled

parent 35f2bbc2
......@@ -1660,12 +1660,18 @@ int conn_check_send (NiceAgent *agent, CandidateCheckPair *pair)
g_get_current_time (&pair->next_tick);
g_time_val_add (&pair->next_tick, timeout * 1000);
} else {
nice_debug ("Agent %p: buffer is empty, cancelling conncheck", agent);
pair->stun_message.buffer = NULL;
pair->stun_message.buffer_len = 0;
return -1;
}
} else {
nice_debug ("Agent %p: no credentials found, cancelling conncheck", agent);
pair->stun_message.buffer = NULL;
pair->stun_message.buffer_len = 0;
return -1;
}
return 0;
}
......
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