mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
Don't try to unistall service if it isn't installed (#637)
This commit is contained in:
@@ -119,6 +119,11 @@ namespace Jackett.Services
|
|||||||
public void RemoveService()
|
public void RemoveService()
|
||||||
{
|
{
|
||||||
var service = GetService(NAME);
|
var service = GetService(NAME);
|
||||||
|
if(service == null)
|
||||||
|
{
|
||||||
|
logger.Warn("The service is already uninstalled");
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (service.Status != ServiceControllerStatus.Stopped)
|
if (service.Status != ServiceControllerStatus.Stopped)
|
||||||
{
|
{
|
||||||
service.Stop();
|
service.Stop();
|
||||||
|
Reference in New Issue
Block a user