From: Bart Polot Date: Mon, 30 Jun 2014 13:04:28 +0000 (+0000) Subject: - debug X-Git-Tag: initial-import-from-subversion-38251~3546 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=96ef079d58b80564cd0bbe3a2cc0baf1fe5d3833;p=oweals%2Fgnunet.git - debug --- diff --git a/src/cadet/gnunet-service-cadet_tunnel.c b/src/cadet/gnunet-service-cadet_tunnel.c index 8efdfc2e0..075de7876 100644 --- a/src/cadet/gnunet-service-cadet_tunnel.c +++ b/src/cadet/gnunet-service-cadet_tunnel.c @@ -1213,13 +1213,14 @@ send_kx (struct CadetTunnel *t, */ /* Must have a connection. */ - if (NULL == t->connection_head) + if (NULL == t->connection_head && CADET_TUNNEL_SEARCHING != t->cstate) { - GNUNET_break (CADET_TUNNEL_SEARCHING == t->cstate); - LOG (GNUNET_ERROR_TYPE_DEBUG, "\n\n\nsending %s\n", GC_m2s (type)); - GCT_debug (t, GNUNET_ERROR_TYPE_DEBUG); - GCP_debug (t->peer, GNUNET_ERROR_TYPE_DEBUG); - LOG (GNUNET_ERROR_TYPE_DEBUG, "\n\n\n"); + LOG (GNUNET_ERROR_TYPE_WARNING, "\n\n\n"); + GNUNET_break (0); + LOG (GNUNET_ERROR_TYPE_WARNING, "sending %s\n", GC_m2s (type)); + GCT_debug (t, GNUNET_ERROR_TYPE_WARNING); + GCP_debug (t->peer, GNUNET_ERROR_TYPE_WARNING); + LOG (GNUNET_ERROR_TYPE_WARNING, "\n\n\n"); return; }