Browse Source

Fix up CoreAppHost.cs

Bond-009 6 năm trước cách đây
mục cha
commit
34af7501fa
1 tập tin đã thay đổi với 3 bổ sung4 xóa
  1. 3 4
      Jellyfin.Server/CoreAppHost.cs

+ 3 - 4
Jellyfin.Server/CoreAppHost.cs

@@ -18,6 +18,8 @@ namespace Jellyfin.Server
 
         public override bool CanSelfRestart => StartupOptions.RestartPath != null;
 
+        protected override bool SupportsDualModeSockets => true;
+
         protected override void RestartInternal() => Program.Restart();
 
         protected override IEnumerable<Assembly> GetAssembliesWithPartsInternal()
@@ -27,8 +29,6 @@ namespace Jellyfin.Server
 
         protected override void ShutdownInternal() => Program.Shutdown();
 
-        protected override bool SupportsDualModeSockets => true;
-
         protected override IHttpListener CreateHttpListener()
             => new WebSocketSharpListener(
                 Logger,
@@ -39,7 +39,6 @@ namespace Jellyfin.Server
                 CryptographyProvider,
                 SupportsDualModeSockets,
                 FileSystemManager,
-                EnvironmentInfo
-            );
+                EnvironmentInfo);
     }
 }