From f2a3397e7329b307d58b8cd3e4389bc7294db6af Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 27 May 2011 17:30:14 +0000 Subject: [PATCH] fix --- src/fs/fs_test_lib_data.conf | 4 ++-- src/fs/gnunet-service-fs_cp.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/fs/fs_test_lib_data.conf b/src/fs/fs_test_lib_data.conf index 731afa41c..9a88c760d 100644 --- a/src/fs/fs_test_lib_data.conf +++ b/src/fs/fs_test_lib_data.conf @@ -55,8 +55,8 @@ HOSTNAME = localhost CONTENT_CACHING = NO CONTENT_PUSHING = NO #DEBUG = YES -PREFIX = valgrind --tool=memcheck --leak-check=yes --trace-children=yes -BINARY = /home/grothoff/bin/gnunet-service-fs +#PREFIX = valgrind --tool=memcheck --leak-check=yes --trace-children=yes +#BINARY = /home/grothoff/bin/gnunet-service-fs #PREFIX = xterm -e gdb -x cmd --args [testing] diff --git a/src/fs/gnunet-service-fs_cp.c b/src/fs/gnunet-service-fs_cp.c index 8623e2b94..e0154f2d7 100644 --- a/src/fs/gnunet-service-fs_cp.c +++ b/src/fs/gnunet-service-fs_cp.c @@ -839,9 +839,9 @@ handle_p2p_reply (void *cls, pm); if (eval != GNUNET_BLOCK_EVALUATION_OK_LAST) return; - GNUNET_assert (GNUNET_SCHEDULER_NO_TASK == peerreq->kill_task); - peerreq->kill_task = GNUNET_SCHEDULER_add_now (&peer_request_destroy, - peerreq); + if (GNUNET_SCHEDULER_NO_TASK == peerreq->kill_task) + peerreq->kill_task = GNUNET_SCHEDULER_add_now (&peer_request_destroy, + peerreq); } -- 2.25.1