-do not wait for timeout on hard error
authorChristian Grothoff <christian@grothoff.org>
Wed, 7 Jan 2015 14:22:43 +0000 (14:22 +0000)
committerChristian Grothoff <christian@grothoff.org>
Wed, 7 Jan 2015 14:22:43 +0000 (14:22 +0000)
src/fs/test_fs_download.c

index 94e7e0733d4ff66adad7794a45b63ae082f2ec97..967e6e75323583ee8cfd2a473ec7f2ebd667a22f 100644 (file)
@@ -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: