GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Timeout while trying to publish data\n");
if (NULL == po->fs)
- GNUNET_TESTBED_operation_cancel (po->fs_op);
+ GNUNET_TESTBED_operation_done (po->fs_op);
else
GNUNET_TESTBED_operation_done (po->fs_op);
GNUNET_FS_publish_stop (po->publish_context);
- GNUNET_TESTBED_operation_done (po->fs_op);
po->publish_cont (po->publish_cont_cls, NULL);
GNUNET_free_non_null (po->publish_tmp_file);
GNUNET_free (po);
dop->download_cont_cls,
GNUNET_SCHEDULER_REASON_TIMEOUT);
if (NULL == dop->fs)
- GNUNET_TESTBED_operation_cancel (dop->fs_op);
+ GNUNET_TESTBED_operation_done (dop->fs_op);
else
GNUNET_TESTBED_operation_done (dop->fs_op);
GNUNET_FS_uri_destroy (dop->uri);
return GNUNET_FS_start (cfg,
"fs-test-download",
&download_progress_cb, po,
+ GNUNET_FS_FLAGS_NONE,
GNUNET_FS_OPTIONS_END);
}
{
struct TestDownloadOperation *dop = cls;
+ dop->fs = ca_result;
+ GNUNET_assert (NULL != dop->fs);
dop->download_context =
GNUNET_FS_download_start (dop->fs, dop->uri, NULL, NULL, NULL, 0, dop->size,
dop->anonymity, GNUNET_FS_DOWNLOAD_OPTION_NONE,