Shorten async timeout window to 3000ms

This commit is contained in:
2025-09-04 18:37:21 -04:00
parent ef4c463471
commit 74155ce171

View File

@@ -138,7 +138,7 @@ public partial class MareHub : Hub<IMareHub>, IMareHub
try
{
// Check DB to see if the user reconnected after this disconnect
await Task.Delay(TimeSpan.FromSeconds(7)).ConfigureAwait(false);
await Task.Delay(TimeSpan.FromSeconds(3)).ConfigureAwait(false);
var dbUser = await DbContext.Users.AsNoTracking().SingleOrDefaultAsync(u => u.UID == UserUID).ConfigureAwait(false);
if (dbUser != null && dbUser.LastLoggedIn < _lastdc)
{