mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Missing a lock in the validate method that could cause refresh to trigger a lot of times asynchronously
This commit is contained in:
parent
f956943f45
commit
6dde81ec7c
@ -51,6 +51,7 @@ public class NexusApi
|
|||||||
public virtual async Task<(ValidateInfo info, ResponseMetadata header)> Validate(
|
public virtual async Task<(ValidateInfo info, ResponseMetadata header)> Validate(
|
||||||
CancellationToken token = default)
|
CancellationToken token = default)
|
||||||
{
|
{
|
||||||
|
using var _ = await _authLock.WaitAsync();
|
||||||
var (isApi, code) = await GetAuthInfo();
|
var (isApi, code) = await GetAuthInfo();
|
||||||
|
|
||||||
if (isApi)
|
if (isApi)
|
||||||
|
Loading…
Reference in New Issue
Block a user