diff --git a/src/libostree/ostree-repo-pull.c b/src/libostree/ostree-repo-pull.c index 63277f2aba..d339c21fff 100644 --- a/src/libostree/ostree-repo-pull.c +++ b/src/libostree/ostree-repo-pull.c @@ -3605,7 +3605,7 @@ ostree_repo_pull_with_options (OstreeRepo *self, const char *remote_name_or_base opt_retry_all_set = g_variant_lookup (options, "retry-all-network-errors", "b", &pull_data->retry_all); opt_max_outstanding_fetcher_requests_set - = g_variant_lookup (options, "max-outstanding-fetcher-requests", "b", + = g_variant_lookup (options, "max-outstanding-fetcher-requests", "u", &pull_data->max_outstanding_fetcher_requests); opt_n_network_retries_set = g_variant_lookup (options, "n-network-retries", "u", &pull_data->n_network_retries); @@ -3687,7 +3687,7 @@ ostree_repo_pull_with_options (OstreeRepo *self, const char *remote_name_or_base pull_data->low_speed_time = OPT_LOWSPEEDTIME_DEFAULT; if (!opt_retry_all_set) pull_data->retry_all = OPT_RETRYALL_DEFAULT; - if (!opt_max_outstanding_fetcher_requests_set) + if (!opt_max_outstanding_fetcher_requests_set || pull_data->max_outstanding_fetcher_requests == 0) pull_data->max_outstanding_fetcher_requests = OPT_OSTREE_MAX_OUTSTANDING_FETCHER_REQUESTS_DEFAULT; @@ -6384,7 +6384,7 @@ ostree_repo_remote_fetch_summary_with_options (OstreeRepo *self, const char *nam (void)g_variant_lookup (options, "low-speed-limit-bytes", "u", &low_speed_limit); (void)g_variant_lookup (options, "low-speed-time-seconds", "u", &low_speed_time); (void)g_variant_lookup (options, "retry-all-network-errors", "b", &retry_all); - (void)g_variant_lookup (options, "max-outstanding-fetcher-requests", "b", + (void)g_variant_lookup (options, "max-outstanding-fetcher-requests", "u", &max_outstanding_fetcher_requests); }