diff --git a/MareSynchronosServer/MareSynchronosServer/Authentication/SecretKeyAuthenticationHandler.cs b/MareSynchronosServer/MareSynchronosServer/Authentication/SecretKeyAuthenticationHandler.cs index 2e5c305..96531ba 100644 --- a/MareSynchronosServer/MareSynchronosServer/Authentication/SecretKeyAuthenticationHandler.cs +++ b/MareSynchronosServer/MareSynchronosServer/Authentication/SecretKeyAuthenticationHandler.cs @@ -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; }