mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-15 08:44:16 +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
|
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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue