mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-26 20:11:49 +02:00
Check if process HasExited before getting ProcessInfo.
Fixes ND-8.
This commit is contained in:
@@ -91,7 +91,7 @@ namespace NzbDrone.Common
|
||||
|
||||
private static ProcessInfo ConvertToProcessInfo(Process process)
|
||||
{
|
||||
if (process == null || process.Id <= 0) return null;
|
||||
if (process == null || process.Id <= 0 || process.HasExited) return null;
|
||||
|
||||
return new ProcessInfo
|
||||
{
|
||||
|
Reference in New Issue
Block a user