Correctly close connections in UnavailablePendingReleases housekeeper
Regression from PG
This commit is contained in:
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…
Reference in New Issue