mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
cleaned up some code around process handling.
This commit is contained in:
parent
e24c85cc1c
commit
f9fe119af2
6 changed files with 55 additions and 47 deletions
|
@ -1,4 +1,3 @@
|
|||
using System.Linq;
|
||||
using NzbDrone.Common;
|
||||
|
||||
namespace NzbDrone.Update.UpdateEngine
|
||||
|
@ -27,7 +26,7 @@ namespace NzbDrone.Update.UpdateEngine
|
|||
return AppType.Service;
|
||||
}
|
||||
|
||||
if (_processProvider.GetProcessByName(ProcessProvider.NzbDroneConsoleProcessName).Any())
|
||||
if (_processProvider.Exists(ProcessProvider.NzbDroneConsoleProcessName))
|
||||
{
|
||||
return AppType.Console;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue