NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
Set stop event first (#16466)
Nicolas Mowenac3dfbc30d0d
diff --git a/frigate/comms/webpush.py b/frigate/comms/webpush.pyindex b96b6f3c0f..b55b7e82c6 100644--- a/frigate/comms/webpush.py+++ b/frigate/comms/webpush.py@@ -39,6 +39,7 @@ class WebPushClient(Communicator): # type: ignore[misc]def __init__(self, config: FrigateConfig, stop_event: MpEvent) -> None:self.config = config+ self.stop_event = stop_eventself.claim_headers: dict[str, dict[str, str]] = {}self.refresh: int = 0self.web_pushers: dict[str, list[WebPusher]] = {}@@ -51,7 +52,6 @@ class WebPushClient(Communicator): # type: ignore[misc]target=self._process_notifications, daemon=True)self.notification_thread.start()- self.stop_event = stop_eventif not self.config.notifications.email:logger.warning("Email must be provided for push notifications to be sent.")