The Free Software Media System - Server Backend & API
Don't throw on logout if session does not exist
Shadowghost2b4945217af2
diff --git a/Jellyfin.Server.Implementations/Devices/DeviceManager.cs b/Jellyfin.Server.Implementations/Devices/DeviceManager.csindex 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.Devicesvar 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);}}