mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
- Fix duplicate requests to the NexusApi draining the rate limit.
This commit is contained in:
parent
1004177050
commit
ed7c9cd686
@ -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>();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user