diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-01-07 14:22:43 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-01-07 14:22:43 +0000 |
commit | 9c0dec8bce397118572dd4392b9801d519880cef (patch) | |
tree | 7685e19777041a410100fca453a37f88598758fe /src/fs/test_fs_download.c | |
parent | 53a4829c9f97de9a06a7ad56a76d6600d4069393 (diff) | |
download | gnunet-9c0dec8bce397118572dd4392b9801d519880cef.tar.gz gnunet-9c0dec8bce397118572dd4392b9801d519880cef.zip |
-do not wait for timeout on hard error
Diffstat (limited to 'src/fs/test_fs_download.c')
-rw-r--r-- | src/fs/test_fs_download.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fs/test_fs_download.c b/src/fs/test_fs_download.c index 94e7e0733..967e6e753 100644 --- a/src/fs/test_fs_download.c +++ b/src/fs/test_fs_download.c | |||
@@ -200,11 +200,13 @@ progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *event) | |||
200 | GNUNET_break (0); | 200 | GNUNET_break (0); |
201 | GNUNET_SCHEDULER_add_continuation (&abort_publish_task, NULL, | 201 | GNUNET_SCHEDULER_add_continuation (&abort_publish_task, NULL, |
202 | GNUNET_SCHEDULER_REASON_PREREQ_DONE); | 202 | GNUNET_SCHEDULER_REASON_PREREQ_DONE); |
203 | GNUNET_SCHEDULER_shutdown (); | ||
203 | break; | 204 | break; |
204 | case GNUNET_FS_STATUS_DOWNLOAD_ERROR: | 205 | case GNUNET_FS_STATUS_DOWNLOAD_ERROR: |
205 | FPRINTF (stderr, "Error downloading file: %s\n", | 206 | FPRINTF (stderr, "Error downloading file: %s\n", |
206 | event->value.download.specifics.error.message); | 207 | event->value.download.specifics.error.message); |
207 | GNUNET_SCHEDULER_add_now (&abort_download_task, NULL); | 208 | GNUNET_SCHEDULER_add_now (&abort_download_task, NULL); |
209 | GNUNET_SCHEDULER_shutdown (); | ||
208 | break; | 210 | break; |
209 | case GNUNET_FS_STATUS_DOWNLOAD_ACTIVE: | 211 | case GNUNET_FS_STATUS_DOWNLOAD_ACTIVE: |
210 | case GNUNET_FS_STATUS_DOWNLOAD_INACTIVE: | 212 | case GNUNET_FS_STATUS_DOWNLOAD_INACTIVE: |