- remove _break
authorBart Polot <bart@net.in.tum.de>
Thu, 6 Feb 2014 17:52:35 +0000 (17:52 +0000)
committerBart Polot <bart@net.in.tum.de>
Thu, 6 Feb 2014 17:52:35 +0000 (17:52 +0000)
src/mesh/gnunet-service-mesh_connection.c

index 654abb52933d6b985ebdcd8405066ad1956e5761..59b4f4a4ba0708882ff8dc6b51bee9664a36c8fa 100644 (file)
@@ -1021,10 +1021,11 @@ schedule_next_keepalive (struct MeshConnection *c, int fwd)
     keepalive_task = &connection_bck_keepalive;
   }
 
-  /* Check that no one scheduled it before us (and alert in that case) */
+  /* Check that no one scheduled it before us */
   if (GNUNET_SCHEDULER_NO_TASK != *task_id)
   {
-    GNUNET_break (0);
+    /* No need for a _break. It can happen for instance when sending a SYNACK
+     * for a duplicate SYN: the first SYNACK scheduled the task. */
     GNUNET_SCHEDULER_cancel (*task_id);
   }