1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-05 02:22:31 +01:00

Fixed: Conflicts with mono 3.12

This commit is contained in:
Mark McDowall 2015-01-14 16:58:21 -08:00
parent 13b43dc084
commit 9e11745cb2

View File

@ -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;
}