-handle shutdown
authorChristian Grothoff <christian@grothoff.org>
Mon, 28 Nov 2011 17:44:16 +0000 (17:44 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 28 Nov 2011 17:44:16 +0000 (17:44 +0000)
src/nse/gnunet-service-nse.c

index 57bfcde2ff3be670e3e07af96b83c50d9c2ec9c6..ab8ef5a9e6de66a159af038a8f82af2c424262f2 100644 (file)
@@ -711,6 +711,8 @@ update_flood_message (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
   unsigned int i;
 
   flood_task = GNUNET_SCHEDULER_NO_TASK;
+  if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN))
+    return;
   offset = GNUNET_TIME_absolute_get_remaining (next_timestamp);
   if (0 != offset.rel_value)
   {