From 5732e6188c78e9e0de4a5557bfa9cfa64e05b506 Mon Sep 17 00:00:00 2001 From: Bond_009 Date: Tue, 15 Feb 2022 18:59:46 +0100 Subject: Fix some warnings --- Emby.Server.Implementations/Data/SqliteUserDataRepository.cs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Emby.Server.Implementations/Data/SqliteUserDataRepository.cs') diff --git a/Emby.Server.Implementations/Data/SqliteUserDataRepository.cs b/Emby.Server.Implementations/Data/SqliteUserDataRepository.cs index 80b8f9ebf..9d4c21e01 100644 --- a/Emby.Server.Implementations/Data/SqliteUserDataRepository.cs +++ b/Emby.Server.Implementations/Data/SqliteUserDataRepository.cs @@ -390,6 +390,7 @@ namespace Emby.Server.Implementations.Data return userData; } +#pragma warning disable CA2215 /// /// /// There is nothing to dispose here since and @@ -398,6 +399,10 @@ namespace Emby.Server.Implementations.Data /// protected override void Dispose(bool dispose) { + // The write lock and connection for the item repository are shared with the user data repository + // since they point to the same database. The item repo has responsibility for disposing these two objects, + // so the user data repo should not attempt to dispose them as well } +#pragma warning restore CA2215 } } -- cgit v1.2.3