1
0
Fork 0
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:
Bogdan 2023-06-18 14:57:56 +03:00
parent 6de2f4b171
commit af30828151

View file

@ -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)
{