Correctly close connections in UnavailablePendingReleases housekeeper

Regression from PG
pull/5898/head
Qstick 1 year ago
parent c423d1e7f8
commit b1d12b8ee9

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