mirror of https://github.com/Jackett/Jackett
Don't try to unistall service if it isn't installed (#637)
This commit is contained in:
parent
dd24f12eac
commit
840037aa7f
|
@ -119,6 +119,11 @@ namespace Jackett.Services
|
|||
public void RemoveService()
|
||||
{
|
||||
var service = GetService(NAME);
|
||||
if(service == null)
|
||||
{
|
||||
logger.Warn("The service is already uninstalled");
|
||||
return;
|
||||
}
|
||||
if (service.Status != ServiceControllerStatus.Stopped)
|
||||
{
|
||||
service.Stop();
|
||||
|
|
Loading…
Reference in New Issue