From c6e53d0ea82876f4759bacb75d31bef7e5d923d3 Mon Sep 17 00:00:00 2001 From: ElMoribond Date: Mon, 21 Jun 2021 17:36:22 +0200 Subject: [PATCH] Add ability to restart --- frigate/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frigate/util.py b/frigate/util.py index b837edcf5..f0fc9ad94 100755 --- a/frigate/util.py +++ b/frigate/util.py @@ -522,7 +522,7 @@ def clipped(obj, frame_shape): def restart_frigate(): for proc in psutil.process_iter(): if proc.name().startswith("frigate.detector."): - psutil.Process(proc.pid).terminate() + psutil.Process(proc.pid).terminate() return