From 9c0dec8bce397118572dd4392b9801d519880cef Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 7 Jan 2015 14:22:43 +0000 Subject: [PATCH] -do not wait for timeout on hard error --- src/fs/test_fs_download.c | 2 ++ 1 file changed, 2 insertions(+) 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) GNUNET_break (0); GNUNET_SCHEDULER_add_continuation (&abort_publish_task, NULL, GNUNET_SCHEDULER_REASON_PREREQ_DONE); + GNUNET_SCHEDULER_shutdown (); break; case GNUNET_FS_STATUS_DOWNLOAD_ERROR: FPRINTF (stderr, "Error downloading file: %s\n", event->value.download.specifics.error.message); GNUNET_SCHEDULER_add_now (&abort_download_task, NULL); + GNUNET_SCHEDULER_shutdown (); break; case GNUNET_FS_STATUS_DOWNLOAD_ACTIVE: case GNUNET_FS_STATUS_DOWNLOAD_INACTIVE: -- 2.25.1