- Fix duplicate requests to the NexusApi draining the rate limit.

This commit is contained in:
Christopher Cyclonit Klinge 2019-10-13 21:37:05 +02:00
parent 1004177050
commit ed7c9cd686

View File

@ -182,7 +182,10 @@ namespace Wabbajack.NexusApi
var response = responseTask.Result;
UpdateRemaining(response);
using (var stream = _httpClient.GetStreamSync(url))
var contentTask = response.Content.ReadAsStreamAsync();
contentTask.Wait();
using (var stream = contentTask.Result)
{
return stream.FromJSON<T>();
}