diff options
Diffstat (limited to 'MediaBrowser.ServerApplication/ApplicationHost.cs')
| -rw-r--r-- | MediaBrowser.ServerApplication/ApplicationHost.cs | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/MediaBrowser.ServerApplication/ApplicationHost.cs b/MediaBrowser.ServerApplication/ApplicationHost.cs index a35ac44ea..4dd24d98f 100644 --- a/MediaBrowser.ServerApplication/ApplicationHost.cs +++ b/MediaBrowser.ServerApplication/ApplicationHost.cs @@ -378,18 +378,15 @@ namespace MediaBrowser.ServerApplication RegisterServerWithAdministratorAccess(); } - Parallel.Invoke( + base.FindParts(); - () => base.FindParts(), + HttpServer.Init(GetExports<IRestfulService>(false)); - () => - { - HttpServer.Init(GetExports<IRestfulService>(false)); + ServerManager.AddWebSocketListeners(GetExports<IWebSocketListener>(false)); - ServerManager.AddWebSocketListeners(GetExports<IWebSocketListener>(false)); - - StartServer(true); - }, + StartServer(true); + + Parallel.Invoke( () => LibraryManager.AddParts(GetExports<IResolverIgnoreRule>(), GetExports<IVirtualFolderCreator>(), GetExports<IItemResolver>(), GetExports<IIntroProvider>(), GetExports<IBaseItemComparer>()), |
