mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-05 18:42:42 +01:00
Monitoring provider now skips if Windows Auth is enabled.
This commit is contained in:
parent
4796b81cf1
commit
70dcacb41b
@ -6,6 +6,7 @@
|
||||
using NLog;
|
||||
using Ninject;
|
||||
using NzbDrone.Common;
|
||||
using NzbDrone.Common.Model;
|
||||
|
||||
namespace NzbDrone.Providers
|
||||
{
|
||||
@ -16,17 +17,19 @@ public class MonitoringProvider
|
||||
private readonly IISProvider _iisProvider;
|
||||
private readonly ProcessProvider _processProvider;
|
||||
private readonly WebClientProvider _webClientProvider;
|
||||
private readonly ConfigFileProvider _configFileProvider;
|
||||
|
||||
private int _pingFailCounter;
|
||||
private Timer _pingTimer;
|
||||
|
||||
[Inject]
|
||||
public MonitoringProvider(ProcessProvider processProvider, IISProvider iisProvider,
|
||||
WebClientProvider webClientProvider)
|
||||
WebClientProvider webClientProvider, ConfigFileProvider configFileProvider)
|
||||
{
|
||||
_processProvider = processProvider;
|
||||
_iisProvider = iisProvider;
|
||||
_webClientProvider = webClientProvider;
|
||||
_configFileProvider = configFileProvider;
|
||||
}
|
||||
|
||||
public MonitoringProvider()
|
||||
@ -68,7 +71,7 @@ public virtual void EnsurePriority(object sender, ElapsedEventArgs e)
|
||||
|
||||
public virtual void PingServer(object sender, ElapsedEventArgs e)
|
||||
{
|
||||
if (!_iisProvider.ServerStarted) return;
|
||||
if (!_iisProvider.ServerStarted || _configFileProvider.AuthenticationType == AuthenticationType.Windows) return;
|
||||
|
||||
try
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user