The Free Software Media System - Server Backend & API
readded concurrency exception check
JPVenson8ec3b5c7ac98
diff --git a/src/Jellyfin.Database/Jellyfin.Database.Implementations/JellyfinDbContext.cs b/src/Jellyfin.Database/Jellyfin.Database.Implementations/JellyfinDbContext.csindex 83c15aa647..b0c12bf592 100644--- a/src/Jellyfin.Database/Jellyfin.Database.Implementations/JellyfinDbContext.cs+++ b/src/Jellyfin.Database/Jellyfin.Database.Implementations/JellyfinDbContext.cs@@ -299,6 +299,11 @@ public class JellyfinDbContext(DbContextOptions<JellyfinDbContext> options, ILog});return result;}+ catch (DbUpdateConcurrencyException)+ {+ // a concurrency exception is supposed to be always handled by the invoker of the method, logging it here is only causing log bloat.+ throw;+ }catch (Exception e){logger.LogError(e, "Error trying to save changes.");