Missing a lock in the validate method that could cause refresh to trigger a lot of times asynchronously

This commit is contained in:
trawzified 2024-05-29 22:27:40 +02:00
parent f956943f45
commit 6dde81ec7c

View File

@ -51,6 +51,7 @@ public class NexusApi
public virtual async Task<(ValidateInfo info, ResponseMetadata header)> Validate(
CancellationToken token = default)
{
using var _ = await _authLock.WaitAsync();
var (isApi, code) = await GetAuthInfo();
if (isApi)