remove testing breaks and add documentation for checks
authorMatthias Wachs <wachs@net.in.tum.de>
Thu, 20 Mar 2014 09:05:01 +0000 (09:05 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Thu, 20 Mar 2014 09:05:01 +0000 (09:05 +0000)
src/transport/gnunet-service-transport_neighbours.c

index 7e7b8a09fd149d8b9dba94e55ab3fe9dc9c28a54..6b2a7eef526a2219e8d2c9a4b33cc59e868b062f 100644 (file)
@@ -1604,13 +1604,17 @@ send_session_connect_cont (void *cls,
   n = lookup_neighbour (target);
   if (NULL == n)
   {
-    GNUNET_break (0); /* TESTING */
+    /* CONNECT continuation was called after neighbor was freed,
+     * for example due to a time out for the state or the session
+     * used was already terminated: nothing to do here... */
     return;
   }
 
   if (GNUNET_TRANSPORT_PS_CONNECT_SENT != n->state)
   {
-    GNUNET_break (0); /* TESTING */
+    /* CONNECT continuation was called after neighbor changed state,
+     * for example due to a time out for the state or the session
+     * used was already terminated: nothing to do here... */
     return;
   }
   if (GNUNET_OK == result)