summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYouness Alaoui <youness.alaoui@collabora.co.uk>2011-03-07 22:13:09 (GMT)
committerYouness Alaoui <youness.alaoui@collabora.co.uk>2011-03-24 02:08:28 (GMT)
commit6cf529b68e52a2d25b86e071a2caf8a67b19667e (patch)
tree7b1fadddc31b71fb009c2d106e3e4b5c54b3a191
parent35f2bbc20ef1ceaeb8421110094717751d58b0ab (diff)
downloadlibnice-6cf529b68e52a2d25b86e071a2caf8a67b19667e.tar.gz
libnice-6cf529b68e52a2d25b86e071a2caf8a67b19667e.tar.xz
Add some debug output when errors happen and the conncheck is cancelled
-rw-r--r--agent/conncheck.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/agent/conncheck.c b/agent/conncheck.c
index eea1009..e5be914 100644
--- a/agent/conncheck.c
+++ b/agent/conncheck.c
@@ -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;
}