From bc2a6c8296b527e26ae3907f4f700976a3a6b2d2 Mon Sep 17 00:00:00 2001 From: ElMoribond Date: Wed, 14 Jul 2021 17:35:02 +0200 Subject: [PATCH] Improve restart from UI --- frigate/util.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/frigate/util.py b/frigate/util.py index 22c3cad59..de6d36b9d 100755 --- a/frigate/util.py +++ b/frigate/util.py @@ -522,8 +522,6 @@ def clipped(obj, frame_shape): def restart_frigate(mqtt_client, topic_prefix, from_ui = 1): def on_publish(client,userdata,result): - time.sleep(0.67) - logger.info("Restart requested.") os.kill(os.getpid(), signal.SIGKILL) mqtt_client.on_publish = on_publish