mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-10-19 13:12:48 +03:00
drain all queued auth updates in the output process
This commit is contained in:
@@ -195,11 +195,13 @@ class OutputProcess(FrigateProcess):
|
|||||||
logger.debug("Applied dynamic birdseye config update")
|
logger.debug("Applied dynamic birdseye config update")
|
||||||
|
|
||||||
# user endpoints publish None on this topic and role edits an AuthConfig
|
# user endpoints publish None on this topic and role edits an AuthConfig
|
||||||
_, auth_config = auth_config_subscriber.check_for_update()
|
while True:
|
||||||
|
auth_topic, auth_config = auth_config_subscriber.check_for_update()
|
||||||
if isinstance(auth_config, AuthConfig):
|
if auth_topic is None:
|
||||||
self.config.auth = auth_config
|
break
|
||||||
logger.debug("Applied dynamic auth config update")
|
if isinstance(auth_config, AuthConfig):
|
||||||
|
self.config.auth = auth_config
|
||||||
|
logger.debug("Applied dynamic auth config update")
|
||||||
|
|
||||||
# drain review updates every iteration, not just when birdseye is
|
# drain review updates every iteration, not just when birdseye is
|
||||||
# being consumed, so a dropped end never strands a camera
|
# being consumed, so a dropped end never strands a camera
|
||||||
|
|||||||
Reference in New Issue
Block a user