From af3082815186a96142032e39abe8521d0c0e4396 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Sun, 18 Jun 2023 14:57:56 +0300 Subject: [PATCH] Close database connection in housekeeping task --- .../CleanupDownloadClientUnavailablePendingReleases.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Housekeeping/Housekeepers/CleanupDownloadClientUnavailablePendingReleases.cs b/src/NzbDrone.Core/Housekeeping/Housekeepers/CleanupDownloadClientUnavailablePendingReleases.cs index 7e3cb6d81..32afced01 100644 --- a/src/NzbDrone.Core/Housekeeping/Housekeepers/CleanupDownloadClientUnavailablePendingReleases.cs +++ b/src/NzbDrone.Core/Housekeeping/Housekeepers/CleanupDownloadClientUnavailablePendingReleases.cs @@ -16,7 +16,7 @@ namespace NzbDrone.Core.Housekeeping.Housekeepers public void Clean() { - var mapper = _database.OpenConnection(); + using var mapper = _database.OpenConnection(); if (_database.DatabaseType == DatabaseType.PostgreSQL) {