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
|
# Prune expired reconnect timestamps
|
||||||
now = datetime.now().timestamp()
|
now = datetime.now().timestamp()
|
||||||
while (
|
while (
|
||||||
self.reconnect_timestamps
|
self.reconnect_timestamps and self.reconnect_timestamps[0] < now - 3600
|
||||||
and self.reconnect_timestamps[0] < now - 3600
|
|
||||||
):
|
):
|
||||||
self.reconnect_timestamps.popleft()
|
self.reconnect_timestamps.popleft()
|
||||||
if self.reconnects:
|
if self.reconnects:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user