Merge pull request #17228 from Shadowghost/fix-logout-concurrency

Don't throw on logout if session does not exist
This commit is contained in:
Cody Robibero
2026-07-05 16:22:45 -04:00
committed by GitHub

View File

@@ -213,8 +213,10 @@ namespace Jellyfin.Server.Implementations.Devices
var dbContext = await _dbProvider.CreateDbContextAsync().ConfigureAwait(false);
await using (dbContext.ConfigureAwait(false))
{
dbContext.Devices.Remove(device);
await dbContext.SaveChangesAsync().ConfigureAwait(false);
await dbContext.Devices
.Where(d => d.Id == device.Id)
.ExecuteDeleteAsync()
.ConfigureAwait(false);
}
}