From ac3dfbc30d0dd956915702dfb3a0d35de4fd60bd Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Mon, 10 Feb 2025 20:22:33 -0700 Subject: [PATCH] Set stop event first (#16466) --- frigate/comms/webpush.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frigate/comms/webpush.py b/frigate/comms/webpush.py index b96b6f3c0..b55b7e82c 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_event self.claim_headers: dict[str, dict[str, str]] = {} self.refresh: int = 0 self.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_event if not self.config.notifications.email: logger.warning("Email must be provided for push notifications to be sent.")