Fixed: Conflicts with mono 3.12

pull/2/head
Mark McDowall 10 years ago
parent 13b43dc084
commit 9e11745cb2

@ -6,7 +6,6 @@ using System.IO;
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 @@ namespace NzbDrone.Common.Processes
process.Refresh();
if (process.HasExited)
if (process.Id != Process.GetCurrentProcess().Id && process.HasExited)
{
_logger.Debug("Process has already exited");
return;
@ -261,7 +260,7 @@ namespace NzbDrone.Common.Processes
processInfo.Name = process.ProcessName;
processInfo.StartPath = GetExeFileName(process);
if (process.HasExited)
if (process.Id != Process.GetCurrentProcess().Id && process.HasExited)
{
processInfo = null;
}

Loading…
Cancel
Save