Merge pull request #276 from Noggog/HTTP-fix

Reverted HTTPDownloader to be sync, until side effects can be researched
This commit is contained in:
Timothy Baldridge 2019-12-15 18:01:32 -07:00 committed by GitHub
commit 44b5757c91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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