mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-15 00:11:15 +03:00
formatting
This commit is contained in:
parent
9043daa4f0
commit
a2f6f073e2
@ -474,8 +474,7 @@ class CameraWatchdog(threading.Thread):
|
||||
# Prune expired reconnect timestamps
|
||||
now = datetime.now().timestamp()
|
||||
while (
|
||||
self.reconnect_timestamps
|
||||
and self.reconnect_timestamps[0] < now - 3600
|
||||
self.reconnect_timestamps and self.reconnect_timestamps[0] < now - 3600
|
||||
):
|
||||
self.reconnect_timestamps.popleft()
|
||||
if self.reconnects:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user