mirror of
https://github.com/lidarr/Lidarr
synced 2025-02-24 23:02:44 +00:00
Close database connection in housekeeping task
This commit is contained in:
parent
6de2f4b171
commit
af30828151
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ public CleanupDownloadClientUnavailablePendingReleases(IMainDatabase database)
|
|||
|
||||
public void Clean()
|
||||
{
|
||||
var mapper = _database.OpenConnection();
|
||||
using var mapper = _database.OpenConnection();
|
||||
|
||||
if (_database.DatabaseType == DatabaseType.PostgreSQL)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue