mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-26 20:11:49 +02:00
Tweaked Progress notification.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
@@ -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;
|
||||
}
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user