From: Bart Polot Date: Mon, 28 Jul 2014 05:12:42 +0000 (+0000) Subject: - dont complain about tunnels in search of a path X-Git-Tag: initial-import-from-subversion-38251~3376 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=43630c9e9992fe0a047dab68ab69f7525b5d2063;p=oweals%2Fgnunet.git - dont complain about tunnels in search of a path --- diff --git a/src/cadet/gnunet-service-cadet_tunnel.c b/src/cadet/gnunet-service-cadet_tunnel.c index 8b04f6a0f..92af3dbb7 100644 --- a/src/cadet/gnunet-service-cadet_tunnel.c +++ b/src/cadet/gnunet-service-cadet_tunnel.c @@ -1294,15 +1294,18 @@ send_kx (struct CadetTunnel *t, * who is trying to create a new channel! */ - /* Must have a connection. */ - if (NULL == t->connection_head && CADET_TUNNEL_SEARCHING != t->cstate) + /* Must have a connection, or be looking for one. */ + if (NULL == t->connection_head) { - LOG (GNUNET_ERROR_TYPE_ERROR, "\n\n\n"); - GNUNET_break (0); - LOG (GNUNET_ERROR_TYPE_ERROR, "no connection, sending %s\n", GC_m2s (type)); - GCT_debug (t, GNUNET_ERROR_TYPE_ERROR); - GCP_debug (t->peer, GNUNET_ERROR_TYPE_ERROR); - LOG (GNUNET_ERROR_TYPE_ERROR, "\n\n\n"); + if (CADET_TUNNEL_SEARCHING != t->cstate) + { + LOG (GNUNET_ERROR_TYPE_ERROR, "\n\n\n"); + GNUNET_break (0); + LOG (GNUNET_ERROR_TYPE_ERROR, "no connection, sending %s\n", GC_m2s (type)); + GCT_debug (t, GNUNET_ERROR_TYPE_ERROR); + GCP_debug (t->peer, GNUNET_ERROR_TYPE_ERROR); + LOG (GNUNET_ERROR_TYPE_ERROR, "\n\n\n"); + } return; }