change to waitasync for semaphore
This commit is contained in:
@@ -69,7 +69,7 @@ namespace MareSynchronosServer.Authentication
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
dbLockSemaphore.Wait();
|
await dbLockSemaphore.WaitAsync();
|
||||||
uid = (await _mareDbContext.Auth.Include("User").AsNoTracking()
|
uid = (await _mareDbContext.Auth.Include("User").AsNoTracking()
|
||||||
.FirstOrDefaultAsync(m => m.HashedKey == hashedHeader))?.UserUID;
|
.FirstOrDefaultAsync(m => m.HashedKey == hashedHeader))?.UserUID;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user