Explorar el Código

Don't auto update in debug mode

Luke Pulverenti hace 12 años
padre
commit
e9d47569b5
Se han modificado 1 ficheros con 7 adiciones y 1 borrados
  1. 7 1
      MediaBrowser.ServerApplication/ApplicationHost.cs

+ 7 - 1
MediaBrowser.ServerApplication/ApplicationHost.cs

@@ -507,7 +507,13 @@ namespace MediaBrowser.ServerApplication
         /// <value><c>true</c> if this instance can self update; otherwise, <c>false</c>.</value>
         public override bool CanSelfUpdate
         {
-            get { return ConfigurationManager.CommonConfiguration.EnableAutoUpdate; }
+            get
+            {
+#if DEBUG
+                return false;
+#endif
+                return ConfigurationManager.CommonConfiguration.EnableAutoUpdate;
+            }
         }
 
         /// <summary>