1
0
This commit is contained in:
Erik Johnston
2021-04-01 17:46:14 +01:00
parent 5deb349a7f
commit 2bb036eda7

View File

@@ -182,7 +182,9 @@ class LruCache(Generic[KT, VT]):
or 0 < list_root.prev_node.allocated_ts < ten_minutes_ago + 60
):
i += 1
if list_root.prev_node.allocated_ts > ten_minutes_ago:
todelete = list_root.prev_node
if 0 < todelete.allocated_ts < ten_minutes_ago:
continue
todelete = list_root.prev_node