Explorar el Código

update service name

Luke Pulverenti hace 9 años
padre
commit
316623cb5c
Se han modificado 1 ficheros con 0 adiciones y 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;
         }