aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Data/SqliteUserDataRepository.cs
diff options
context:
space:
mode:
authorCody Robibero <cody@robibe.ro>2022-02-16 20:47:22 -0700
committerGitHub <noreply@github.com>2022-02-16 20:47:22 -0700
commit9930efec2208cb1756eff3eb181044d6f6f3e3da (patch)
treee3cd0ffe83f6202e949b864ba815e45bcd859ab7 /Emby.Server.Implementations/Data/SqliteUserDataRepository.cs
parent5825a0572bdcd11afad283f1e62c07f5e2c61c06 (diff)
parent5732e6188c78e9e0de4a5557bfa9cfa64e05b506 (diff)
Merge pull request #7321 from Bond-009/warn61
Diffstat (limited to 'Emby.Server.Implementations/Data/SqliteUserDataRepository.cs')
-rw-r--r--Emby.Server.Implementations/Data/SqliteUserDataRepository.cs5
1 files changed, 5 insertions, 0 deletions
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
/// <inheritdoc/>
/// <remarks>
/// There is nothing to dispose here since <see cref="BaseSqliteRepository.WriteLock"/> and
@@ -398,6 +399,10 @@ namespace Emby.Server.Implementations.Data
/// </remarks>
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
}
}