fixed ninjet's race condition

This commit is contained in:
Keivan 2010-10-10 12:00:07 -07:00
commit 30d38eead6
11 changed files with 259 additions and 63 deletions

View file

@ -9,7 +9,6 @@ namespace NzbDrone.Web
{
public class MvcApplication : NinjectHttpApplication
{
private StandardKernel _kernel;
public static void RegisterRoutes(RouteCollection routes)
{
@ -35,9 +34,8 @@ namespace NzbDrone.Web
protected override IKernel CreateKernel()
{
_kernel = new StandardKernel();
CentralDispatch.BindKernel(_kernel);
return _kernel;
return CentralDispatch.NinjectKernel;
}