mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
fixed more tests.
This commit is contained in:
parent
9fdfd13dbf
commit
b03388f7b9
31 changed files with 198 additions and 198 deletions
|
@ -66,7 +66,7 @@ namespace NzbDrone.Common
|
|||
Logger.Info("Uninstalling {0} service", serviceName);
|
||||
|
||||
Stop(serviceName);
|
||||
|
||||
|
||||
var serviceInstaller = new ServiceInstaller();
|
||||
|
||||
var context = new InstallContext("service_uninstall.log", null);
|
||||
|
@ -84,9 +84,7 @@ namespace NzbDrone.Common
|
|||
|
||||
public virtual ServiceController GetService(string serviceName)
|
||||
{
|
||||
return ServiceController.GetServices().Where(
|
||||
c => String.Equals(c.ServiceName, serviceName, StringComparison.InvariantCultureIgnoreCase))
|
||||
.FirstOrDefault();
|
||||
return ServiceController.GetServices().FirstOrDefault(c => String.Equals(c.ServiceName, serviceName, StringComparison.InvariantCultureIgnoreCase));
|
||||
}
|
||||
|
||||
public virtual void Stop(string serviceName)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue