clean shutdown
authorChristian Grothoff <christian@grothoff.org>
Sun, 8 Nov 2009 17:28:28 +0000 (17:28 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sun, 8 Nov 2009 17:28:28 +0000 (17:28 +0000)
src/datastore/gnunet-service-datastore.c

index d58f0f8d9d7fdafa7784dd55d24407c04c48d41a..1766ef96c001130e2ab6391804e2d84538379e11 100644 (file)
@@ -1199,6 +1199,12 @@ unload_plugin (struct DatastorePlugin *plug)
 static void
 cleaning_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
 {
+  if (expired_kill_task != GNUNET_SCHEDULER_NO_TASK)
+    {
+      GNUNET_SCHEDULER_cancel (sched,
+                              expired_kill_task);
+      expired_kill_task = GNUNET_SCHEDULER_NO_TASK;
+    }
   unload_plugin (plugin);
   plugin = NULL;
   if (filter != NULL)