change to waitasync for semaphore

This commit is contained in:
Stanley Dimant
2022-08-06 12:35:39 +02:00
parent ad367d7568
commit 332e5a04d4

View File

@@ -69,7 +69,7 @@ namespace MareSynchronosServer.Authentication
{
try
{
dbLockSemaphore.Wait();
await dbLockSemaphore.WaitAsync();
uid = (await _mareDbContext.Auth.Include("User").AsNoTracking()
.FirstOrDefaultAsync(m => m.HashedKey == hashedHeader))?.UserUID;
}