diff --git a/src/NzbDrone.Common/Processes/ProcessProvider.cs b/src/NzbDrone.Common/Processes/ProcessProvider.cs index 6bc213bbb..1a63b2a76 100644 --- a/src/NzbDrone.Common/Processes/ProcessProvider.cs +++ b/src/NzbDrone.Common/Processes/ProcessProvider.cs @@ -320,7 +320,7 @@ private ProcessInfo ConvertToProcessInfo(Process process) processInfo = new ProcessInfo(); processInfo.Id = process.Id; processInfo.Name = process.ProcessName; - processInfo.StartPath = GetExeFileName(process); + processInfo.StartPath = process.MainModule.FileName; if (process.Id != GetCurrentProcessId() && process.HasExited) { @@ -335,16 +335,6 @@ private ProcessInfo ConvertToProcessInfo(Process process) return processInfo; } - private static string GetExeFileName(Process process) - { - if (process.MainModule.FileName != "mono.exe") - { - return process.MainModule.FileName; - } - - return process.Modules.Cast().FirstOrDefault(module => module.ModuleName.ToLower().EndsWith(".exe")).FileName; - } - private List GetProcessesByName(string name) { var processes = Process.GetProcessesByName(name).ToList();