Tweaked Progress notification.

This commit is contained in:
kay.one 2012-01-22 23:43:54 -08:00
parent 2875832db0
commit d6d1bbe3f5
3 changed files with 5 additions and 5 deletions

View File

@ -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();
}

View File

@ -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;
}

View File

@ -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);