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:
parent
2875832db0
commit
d6d1bbe3f5
@ -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();
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user