Explorar o código

update service name

Luke Pulverenti %!s(int64=9) %!d(string=hai) anos
pai
achega
316623cb5c
Modificáronse 1 ficheiros con 0 adicións e 12 borrados
  1. 0 12
      MediaBrowser.ServerApplication/BackgroundService.cs

+ 0 - 12
MediaBrowser.ServerApplication/BackgroundService.cs

@@ -14,18 +14,6 @@ namespace MediaBrowser.ServerApplication
 
         public static string GetExistingServiceName()
         {
-            try
-            {
-                if (ServiceController.GetServices().Any(s => s.ServiceName == "MediaBrowser"))
-                {
-                    return "MediaBrowser";
-                }
-            }
-            catch
-            {
-                return "MediaBrowser";
-            }
-
             return Name;
         }