mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 05:53:33 -07:00
fixed ninjet's race condition
This commit is contained in:
parent
b112e28b80
commit
30d38eead6
11 changed files with 259 additions and 63 deletions
|
@ -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;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue