mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-26 09:47:39 +00:00
Check if process HasExited before getting ProcessInfo.
Fixes ND-8.
This commit is contained in:
parent
a3f2ef6ec6
commit
b1aeb0a973
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ namespace NzbDrone.Common
|
||||||
|
|
||||||
private static ProcessInfo ConvertToProcessInfo(Process process)
|
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
|
return new ProcessInfo
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue