mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-12 22:17:22 +01:00
change to waitasync for semaphore
This commit is contained in:
parent
ad367d7568
commit
332e5a04d4
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue