gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r34066 - gnunet/src/cadet


From: gnunet
Subject: [GNUnet-SVN] r34066 - gnunet/src/cadet
Date: Mon, 28 Jul 2014 07:12:42 +0200

Author: bartpolot
Date: 2014-07-28 07:12:42 +0200 (Mon, 28 Jul 2014)
New Revision: 34066

Modified:
   gnunet/src/cadet/gnunet-service-cadet_tunnel.c
Log:
- dont complain about tunnels in search of a path

Modified: gnunet/src/cadet/gnunet-service-cadet_tunnel.c
===================================================================
--- gnunet/src/cadet/gnunet-service-cadet_tunnel.c      2014-07-28 05:12:40 UTC 
(rev 34065)
+++ gnunet/src/cadet/gnunet-service-cadet_tunnel.c      2014-07-28 05:12:42 UTC 
(rev 34066)
@@ -1294,15 +1294,18 @@
    * 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;
   }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]