mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 12:02:35 +02:00
Disabled KeepConnectionAlive in Services.NzbDrone
This commit is contained in:
parent
9cebfab2f4
commit
c5d2ba9bef
@ -29,15 +29,8 @@ public static void Stop()
|
||||
private static IKernel CreateKernel()
|
||||
{
|
||||
var kernel = new StandardKernel();
|
||||
InitDb(kernel);
|
||||
kernel.Bind<IDatabase>().ToMethod(c => Connection.GetPetaPocoDb());
|
||||
return kernel;
|
||||
}
|
||||
|
||||
|
||||
private static void InitDb(IKernel kernel)
|
||||
{
|
||||
var db = Connection.GetPetaPocoDb();
|
||||
kernel.Bind<IDatabase>().ToConstant(db);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,4 @@
|
||||
using System;
|
||||
using System.Configuration;
|
||||
using System.Data.SqlClient;
|
||||
using System.Configuration;
|
||||
using System.Linq;
|
||||
using NzbDrone.Services.Service.Migrations;
|
||||
using Services.PetaPoco;
|
||||
@ -22,7 +20,7 @@ public static IDatabase GetPetaPocoDb()
|
||||
|
||||
var db = new Database("SqlExpress")
|
||||
{
|
||||
KeepConnectionAlive = true,
|
||||
KeepConnectionAlive = false,
|
||||
ForceDateTimesToUtc = false,
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user