mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-02 01:05:20 +03:00
Improve restart from UI
This commit is contained in:
parent
69faec89d7
commit
bc2a6c8296
@ -522,8 +522,6 @@ def clipped(obj, frame_shape):
|
|||||||
def restart_frigate(mqtt_client, topic_prefix, from_ui = 1):
|
def restart_frigate(mqtt_client, topic_prefix, from_ui = 1):
|
||||||
|
|
||||||
def on_publish(client,userdata,result):
|
def on_publish(client,userdata,result):
|
||||||
time.sleep(0.67)
|
|
||||||
logger.info("Restart requested.")
|
|
||||||
os.kill(os.getpid(), signal.SIGKILL)
|
os.kill(os.getpid(), signal.SIGKILL)
|
||||||
|
|
||||||
mqtt_client.on_publish = on_publish
|
mqtt_client.on_publish = on_publish
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user