Close database connection in housekeeping task

pull/3805/head
Bogdan 2 years ago
parent 6de2f4b171
commit af30828151

@ -16,7 +16,7 @@ namespace NzbDrone.Core.Housekeeping.Housekeepers
public void Clean() public void Clean()
{ {
var mapper = _database.OpenConnection(); using var mapper = _database.OpenConnection();
if (_database.DatabaseType == DatabaseType.PostgreSQL) if (_database.DatabaseType == DatabaseType.PostgreSQL)
{ {

Loading…
Cancel
Save