mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 10:47:08 -07:00
Kill NzbDrone process if service couldn't be stopped.
better Process/Service handling.
This commit is contained in:
parent
6e3aef8ab2
commit
c1a75604fd
6 changed files with 71 additions and 46 deletions
|
@ -33,12 +33,13 @@ namespace NzbDrone.Update.UpdateEngine
|
|||
{
|
||||
try
|
||||
{
|
||||
_logger.Info("NzbDrone Service is installed and running");
|
||||
_serviceProvider.Stop(ServiceProvider.NZBDRONE_SERVICE_NAME);
|
||||
|
||||
}
|
||||
catch (InvalidOperationException e)
|
||||
catch (Exception e)
|
||||
{
|
||||
_logger.WarnException("couldn't stop service", e);
|
||||
_logger.ErrorException("couldn't stop service", e);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue