From a8fd51eade6a83e71660c533890d33fbdcd2b1b0 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 28 Nov 2011 17:44:16 +0000 Subject: [PATCH] -handle shutdown --- src/nse/gnunet-service-nse.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/nse/gnunet-service-nse.c b/src/nse/gnunet-service-nse.c index 57bfcde2f..ab8ef5a9e 100644 --- a/src/nse/gnunet-service-nse.c +++ b/src/nse/gnunet-service-nse.c @@ -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) { -- 2.25.1