fix assertion:
authorChristian Grothoff <christian@grothoff.org>
Thu, 28 Jul 2011 16:33:48 +0000 (16:33 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 28 Jul 2011 16:33:48 +0000 (16:33 +0000)
src/nse/gnunet-service-nse.c

index 0df6975f5e054d9577eac63d1c16f95cb9dd992b..6a1e577fef57928f6ccdbdb26f922a985f178e39 100644 (file)
@@ -923,9 +923,8 @@ update_flood_times (void *cls,
     {
       /* still stuck in previous round, no point to update, check that 
         we are active here though... */
-#if DEBUG_NSE
-      GNUNET_break (peer_entry->transmit_task != GNUNET_SCHEDULER_NO_TASK);
-#endif
+      GNUNET_break ( (peer_entry->transmit_task != GNUNET_SCHEDULER_NO_TASK) ||
+                    (peer_entry->th != NULL) );
       return GNUNET_OK; 
     }
   if (peer_entry->transmit_task != GNUNET_SCHEDULER_NO_TASK)