From 7cf7ac687c80a5817e83aa09e2f15e9e427b29f1 Mon Sep 17 00:00:00 2001 From: Shannon Date: Wed, 25 Jun 2014 12:03:31 +1000 Subject: [PATCH] last issue with state/keep alive timer --- src/Umbraco.Web/Scheduling/KeepAlive.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/Umbraco.Web/Scheduling/KeepAlive.cs b/src/Umbraco.Web/Scheduling/KeepAlive.cs index e5092c2a7b..0ebce6878b 100644 --- a/src/Umbraco.Web/Scheduling/KeepAlive.cs +++ b/src/Umbraco.Web/Scheduling/KeepAlive.cs @@ -11,12 +11,7 @@ namespace Umbraco.Web.Scheduling public static void Start(object sender) { using (DisposableTimer.DebugDuration(() => "Keep alive executing", () => "Keep alive complete")) - { - //NOTE: sender will be the umbraco ApplicationContext - - var appContext = sender as ApplicationContext; - if (appContext == null) return; - + { var umbracoBaseUrl = ServerEnvironmentHelper.GetCurrentServerUmbracoBaseUrl(); var url = string.Format("{0}/ping.aspx", umbracoBaseUrl);