-fixing #2097
authorChristian Grothoff <christian@grothoff.org>
Thu, 26 Jan 2012 10:18:23 +0000 (10:18 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 26 Jan 2012 10:18:23 +0000 (10:18 +0000)
src/fs/gnunet-service-fs_lc.c

index 6eb054acd832e3375b6d2979149d78c7dce0617c..dcedd495adee6e27a495adac4dfc707a1f9a9c31 100644 (file)
@@ -277,7 +277,8 @@ client_response_handler (void *cls, enum GNUNET_BLOCK_EvaluationResult eval,
 #endif
   if (eval != GNUNET_BLOCK_EVALUATION_OK_LAST)
     return;
-  cr->kill_task = GNUNET_SCHEDULER_add_now (&client_request_destroy, cr);
+  if (GNUNET_SCHEDULER_NO_TASK != cr->kill_task)
+    cr->kill_task = GNUNET_SCHEDULER_add_now (&client_request_destroy, cr);
 }