From 3f7d68b4a1a61a8a3efe01e17ab0c932e21d280c Mon Sep 17 00:00:00 2001 From: Justin Swanson Date: Sun, 15 Dec 2019 18:48:12 -0600 Subject: [PATCH] Reverted HTTPDownloader to be sync, until side effects can be researched Was causing download failures, for some unknown reasons --- Wabbajack.Lib/Downloaders/HTTPDownloader.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Wabbajack.Lib/Downloaders/HTTPDownloader.cs b/Wabbajack.Lib/Downloaders/HTTPDownloader.cs index 17f358e5..cb04dcf3 100644 --- a/Wabbajack.Lib/Downloaders/HTTPDownloader.cs +++ b/Wabbajack.Lib/Downloaders/HTTPDownloader.cs @@ -87,7 +87,9 @@ namespace Wabbajack.Lib.Downloaders var bufferSize = 1024 * 32; Utils.Status($"Starting Download {a?.Name ?? Url}", 0); - var response = await client.GetAsync(Url, HttpCompletionOption.ResponseHeadersRead); + var responseTask = client.GetAsync(Url, HttpCompletionOption.ResponseHeadersRead); + responseTask.Wait(); + var response = await responseTask; Stream stream; try