mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
3.6.1.0
This commit is contained in:
parent
a5d9bea0ab
commit
b84bfe2364
@ -1,6 +1,7 @@
|
||||
### Changelog
|
||||
|
||||
#### Version - 3.6.1.0 - TBD
|
||||
#### Version - 3.6.1.0 - 5/26/2024
|
||||
* Fixed a race condition on renewing Nexus Mods OAuth2 tokens
|
||||
* Added `set-nexus-api-key` CLI command
|
||||
* Added Starfield meta data
|
||||
* Added Fallout New Vegas Epic Games metadata
|
||||
|
@ -33,6 +33,7 @@ public class NexusApi
|
||||
public readonly ITokenProvider<NexusOAuthState> AuthInfo;
|
||||
private DateTime _lastValidated;
|
||||
private (ValidateInfo info, ResponseMetadata header) _lastValidatedInfo;
|
||||
private AsyncLock _authLock = new();
|
||||
|
||||
public NexusApi(ITokenProvider<NexusOAuthState> authInfo, ILogger<NexusApi> logger, HttpClient client,
|
||||
IResource<HttpClient> limiter, ApplicationInfo appInfo, JsonSerializerOptions jsonOptions)
|
||||
@ -187,6 +188,7 @@ public class NexusApi
|
||||
protected virtual async ValueTask<HttpRequestMessage> GenerateMessage(HttpMethod method, string uri,
|
||||
params object?[] parameters)
|
||||
{
|
||||
using var _ = await _authLock.WaitAsync();
|
||||
var msg = new HttpRequestMessage();
|
||||
msg.Method = method;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user