mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 05:53:33 -07: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 @@ 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…
Add table
Add a link
Reference in a new issue