mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 18:57:39 -07:00
update won't fail if service can't be stopped.
This commit is contained in:
parent
dabbd5f90e
commit
7701f87e82
2 changed files with 10 additions and 5 deletions
|
@ -54,9 +54,17 @@ namespace NzbDrone.Update.Providers
|
|||
&& _serviceProvider.IsServiceRunning(ServiceProvider.NZBDRONE_SERVICE_NAME))
|
||||
{
|
||||
appType = AppType.Service;
|
||||
_serviceProvider.Stop(ServiceProvider.NZBDRONE_SERVICE_NAME);
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
_serviceProvider.Stop(ServiceProvider.NZBDRONE_SERVICE_NAME);
|
||||
|
||||
}
|
||||
catch (InvalidOperationException e)
|
||||
{
|
||||
logger.WarnException("couldn't stop service", e);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
appType = AppType.Normal;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue