From 70dcacb41bfeef68f85961a52020453f6095587a Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Fri, 13 Jan 2012 14:15:40 -0800 Subject: [PATCH] Monitoring provider now skips if Windows Auth is enabled. --- NzbDrone/Providers/MonitoringProvider.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/NzbDrone/Providers/MonitoringProvider.cs b/NzbDrone/Providers/MonitoringProvider.cs index 201e21b8c..a0b3f2929 100644 --- a/NzbDrone/Providers/MonitoringProvider.cs +++ b/NzbDrone/Providers/MonitoringProvider.cs @@ -6,6 +6,7 @@ using Exceptioneer.WindowsFormsClient; using NLog; using Ninject; using NzbDrone.Common; +using NzbDrone.Common.Model; namespace NzbDrone.Providers { @@ -16,17 +17,19 @@ namespace NzbDrone.Providers 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 @@ namespace NzbDrone.Providers public virtual void PingServer(object sender, ElapsedEventArgs e) { - if (!_iisProvider.ServerStarted) return; + if (!_iisProvider.ServerStarted || _configFileProvider.AuthenticationType == AuthenticationType.Windows) return; try {