Add ability to restart

This commit is contained in:
ElMoribond 2021-06-21 17:36:22 +02:00 committed by Blake Blackshear
parent 436b10a87b
commit c6e53d0ea8

View File

@ -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