diff options
Diffstat (limited to 'src/fs/test_fs_download.c')
-rw-r--r-- | src/fs/test_fs_download.c | 12 |
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 | |||
78 | timeout_kill_task (void *cls, | 78 | timeout_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 | } |