From 39157c9774d43ede5f865c319c8be8e599c42330 Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Sat, 3 Dec 2022 06:13:49 -0700 Subject: [PATCH] Fix return code for timeout call --- frigate/util.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frigate/util.py b/frigate/util.py index 1c2a2533f..fc9177c64 100755 --- a/frigate/util.py +++ b/frigate/util.py @@ -812,7 +812,8 @@ def get_intel_gpu_stats() -> dict[str, str]: capture_output=True, ) - if p.returncode != 0: + # timeout has a non-zero returncode when timeout is reached + if p.returncode != 124: logger.error(p.stderr) return None else: