diff options
| author | Shadowghost <Ghost_of_Stone@web.de> | 2026-07-03 15:58:57 +0200 |
|---|---|---|
| committer | Shadowghost <Ghost_of_Stone@web.de> | 2026-07-03 15:58:57 +0200 |
| commit | 2b4945217af28fbe358d06c322a5fd1853890d1d (patch) | |
| tree | ef876bb0cdc0e84d51a7fa8c3da540d2f8fa6ae0 | |
| parent | ccc1712d10526d3a21e8136c702b84c46ac0a536 (diff) | |
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); } } |
