mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-04 10:02:40 +01:00
Fixed: Conflicts with mono 3.12
This commit is contained in:
parent
13b43dc084
commit
9e11745cb2
@ -6,7 +6,6 @@
|
||||
using System.Linq;
|
||||
using NLog;
|
||||
using NzbDrone.Common.EnvironmentInfo;
|
||||
using NzbDrone.Common.Instrumentation;
|
||||
using NzbDrone.Common.Model;
|
||||
|
||||
namespace NzbDrone.Common.Processes
|
||||
@ -218,7 +217,7 @@ public void Kill(int processId)
|
||||
|
||||
process.Refresh();
|
||||
|
||||
if (process.HasExited)
|
||||
if (process.Id != Process.GetCurrentProcess().Id && process.HasExited)
|
||||
{
|
||||
_logger.Debug("Process has already exited");
|
||||
return;
|
||||
@ -261,7 +260,7 @@ private ProcessInfo ConvertToProcessInfo(Process process)
|
||||
processInfo.Name = process.ProcessName;
|
||||
processInfo.StartPath = GetExeFileName(process);
|
||||
|
||||
if (process.HasExited)
|
||||
if (process.Id != Process.GetCurrentProcess().Id && process.HasExited)
|
||||
{
|
||||
processInfo = null;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user