Disabled KeepConnectionAlive in Services.NzbDrone

pull/2/head
kay.one 13 years ago
parent 9cebfab2f4
commit c5d2ba9bef

@ -29,15 +29,8 @@ namespace NzbDrone.Services.Service.App_Start
private static IKernel CreateKernel() private static IKernel CreateKernel()
{ {
var kernel = new StandardKernel(); var kernel = new StandardKernel();
InitDb(kernel); kernel.Bind<IDatabase>().ToMethod(c => Connection.GetPetaPocoDb());
return kernel; 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.Configuration;
using System.Data.SqlClient;
using System.Linq; using System.Linq;
using NzbDrone.Services.Service.Migrations; using NzbDrone.Services.Service.Migrations;
using Services.PetaPoco; using Services.PetaPoco;
@ -22,7 +20,7 @@ namespace NzbDrone.Services.Service.Datastore
var db = new Database("SqlExpress") var db = new Database("SqlExpress")
{ {
KeepConnectionAlive = true, KeepConnectionAlive = false,
ForceDateTimesToUtc = false, ForceDateTimesToUtc = false,
}; };

Loading…
Cancel
Save