mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Merge pull request #90 from Cyclonit/master
Fix duplicate requests to the NexusApi draining the rate limit
This commit is contained in:
commit
5e7d3e962a
@ -181,7 +181,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>();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user