浏览代码

update service name

Luke Pulverenti 9 年之前
父节点
当前提交
316623cb5c
共有 1 个文件被更改,包括 0 次插入12 次删除
  1. 0 12
      MediaBrowser.ServerApplication/BackgroundService.cs

+ 0 - 12
MediaBrowser.ServerApplication/BackgroundService.cs

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