From d6d1bbe3f555568a75a597be3b65f12e98d83f9e Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Sun, 22 Jan 2012 23:43:54 -0800 Subject: [PATCH] Tweaked Progress notification. --- .../NotificationProviderFixture.cs | 2 +- NzbDrone.Core/Providers/NotificationProvider.cs | 2 +- NzbDrone.Web/Controllers/NotificationController.cs | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/NzbDrone.Core.Test/ProviderTests/NotificationProviderTests/NotificationProviderFixture.cs b/NzbDrone.Core.Test/ProviderTests/NotificationProviderTests/NotificationProviderFixture.cs index 5f14a331c..cd7f40d63 100644 --- a/NzbDrone.Core.Test/ProviderTests/NotificationProviderTests/NotificationProviderFixture.cs +++ b/NzbDrone.Core.Test/ProviderTests/NotificationProviderTests/NotificationProviderFixture.cs @@ -50,7 +50,7 @@ namespace NzbDrone.Core.Test.ProviderTests.NotificationProviderTests _notificationProvider.Register(fakeNotification); fakeNotification.Dispose(); - Thread.Sleep(4000); + Thread.Sleep(7000); _notificationProvider.GetCurrent().Should().BeNull(); } diff --git a/NzbDrone.Core/Providers/NotificationProvider.cs b/NzbDrone.Core/Providers/NotificationProvider.cs index 8c3a072bf..92993abe3 100644 --- a/NzbDrone.Core/Providers/NotificationProvider.cs +++ b/NzbDrone.Core/Providers/NotificationProvider.cs @@ -11,7 +11,7 @@ namespace NzbDrone.Core.Providers public virtual ProgressNotification GetCurrent() { - if (_currentNotification == null || _currentNotification.CompletedTime < DateTime.Now.AddSeconds(-3)) + if (_currentNotification == null || _currentNotification.CompletedTime < DateTime.Now.AddSeconds(-6)) { return null; } diff --git a/NzbDrone.Web/Controllers/NotificationController.cs b/NzbDrone.Web/Controllers/NotificationController.cs index 8f719ce54..ff48a1780 100644 --- a/NzbDrone.Web/Controllers/NotificationController.cs +++ b/NzbDrone.Web/Controllers/NotificationController.cs @@ -1,7 +1,6 @@ -using System; -using System.Diagnostics; -using System.Threading; +using System.Threading; using System.Web.Mvc; +using System.Web.UI; using MvcMiniProfiler; using NzbDrone.Core.Providers; @@ -20,6 +19,7 @@ namespace NzbDrone.Web.Controllers } [HttpGet] + [OutputCache(NoStore = true, Location = OutputCacheLocation.None)] public JsonResult Comet(string message) { MiniProfiler.Stop(true);