aboutsummaryrefslogtreecommitdiff
path: root/src/fs/test_fs_download.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-02-01 13:55:28 +0000
committerChristian Grothoff <christian@grothoff.org>2010-02-01 13:55:28 +0000
commit8f30685560bfd084d681aa3a9470002479bcff80 (patch)
treec09a7f0a3171a4563d3fbb253d924d002f06f27b /src/fs/test_fs_download.c
parent36b60a0ac26d8102667c590587b8a0d33c203cc9 (diff)
downloadgnunet-8f30685560bfd084d681aa3a9470002479bcff80.tar.gz
gnunet-8f30685560bfd084d681aa3a9470002479bcff80.zip
fixes
Diffstat (limited to 'src/fs/test_fs_download.c')
-rw-r--r--src/fs/test_fs_download.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/fs/test_fs_download.c b/src/fs/test_fs_download.c
index 5cb9e4111..d4b32b8c8 100644
--- a/src/fs/test_fs_download.c
+++ b/src/fs/test_fs_download.c
@@ -29,7 +29,7 @@
29#include "gnunet_arm_service.h" 29#include "gnunet_arm_service.h"
30#include "gnunet_fs_service.h" 30#include "gnunet_fs_service.h"
31 31
32#define VERBOSE GNUNET_NO 32#define VERBOSE GNUNET_YES
33 33
34#define START_ARM GNUNET_YES 34#define START_ARM GNUNET_YES
35 35
@@ -78,16 +78,16 @@ static void
78timeout_kill_task (void *cls, 78timeout_kill_task (void *cls,
79 const struct GNUNET_SCHEDULER_TaskContext *tc) 79 const struct GNUNET_SCHEDULER_TaskContext *tc)
80{ 80{
81 if (publish != NULL)
82 {
83 GNUNET_FS_publish_stop (publish);
84 publish = NULL;
85 }
86 if (download != NULL) 81 if (download != NULL)
87 { 82 {
88 GNUNET_FS_download_stop (download, GNUNET_YES); 83 GNUNET_FS_download_stop (download, GNUNET_YES);
89 download = NULL; 84 download = NULL;
90 } 85 }
86 else if (publish != NULL)
87 {
88 GNUNET_FS_publish_stop (publish);
89 publish = NULL;
90 }
91 timeout_kill = GNUNET_SCHEDULER_NO_TASK; 91 timeout_kill = GNUNET_SCHEDULER_NO_TASK;
92 err = 1; 92 err = 1;
93} 93}