1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-07 03:22:37 +01:00

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 @@ public void should_return_null_if_completed_long_time_ago()
_notificationProvider.Register(fakeNotification);
fakeNotification.Dispose();
Thread.Sleep(4000);
Thread.Sleep(7000);
_notificationProvider.GetCurrent().Should().BeNull();
}

View File

@ -11,7 +11,7 @@ public class NotificationProvider
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 @@ public NotificationController(NotificationProvider notificationProvider)
}
[HttpGet]
[OutputCache(NoStore = true, Location = OutputCacheLocation.None)]
public JsonResult Comet(string message)
{
MiniProfiler.Stop(true);