mirror of
https://github.com/ep1cman/unifi-protect-backup.git
synced 2025-12-05 23:53:30 +00:00
Block all calls to protect client when the connection is
dropped and we are awaiting a reconnect
This commit is contained in:
@@ -82,6 +82,9 @@ class VideoDownloader:
|
||||
self.logger.info("Starting Downloader")
|
||||
while True:
|
||||
try:
|
||||
# Wait for unifi protect to be connected
|
||||
await self._protect.connect_event.wait()
|
||||
|
||||
event = await self.download_queue.get()
|
||||
self.current_event = event
|
||||
self.logger = logging.LoggerAdapter(self.base_logger, {'event': f' [{event.id}]'})
|
||||
|
||||
Reference in New Issue
Block a user