diff options
| author | Cody Robibero <cody@robibe.ro> | 2026-07-05 16:22:45 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-07-05 16:22:45 -0400 |
| commit | 31d05dbdd6251e638237c2450fac74917f6995f8 (patch) | |
| tree | a1162451263ae6920c5dec5d32d9f10d713bddb7 | |
| parent | d4faf7bd725303ae357e225aafe85359a11893dc (diff) | |
| parent | 2b4945217af28fbe358d06c322a5fd1853890d1d (diff) | |
Merge pull request #17228 from Shadowghost/fix-logout-concurrency
Don't throw on logout if session does not exist
| -rw-r--r-- | Jellyfin.Server.Implementations/Devices/DeviceManager.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Jellyfin.Server.Implementations/Devices/DeviceManager.cs b/Jellyfin.Server.Implementations/Devices/DeviceManager.cs index bcf348f8c6..d0d52a23fb 100644 --- a/Jellyfin.Server.Implementations/Devices/DeviceManager.cs +++ b/Jellyfin.Server.Implementations/Devices/DeviceManager.cs @@ -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); } } |
