Skip to content

Commit 1c651b3

Browse files
committed
bugfix: cache_invalidate may cause an infinite loop.
1 parent 257fa11 commit 1c651b3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

jd4/cache.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ async def cache_open(session, domain_id, pid):
2121
_events[(domain_id, pid)] = event
2222
await session.problem_data(domain_id, pid, file_path)
2323
event.set()
24+
del _events[(domain_id, pid)]
2425
else:
2526
await event.wait()
2627

0 commit comments

Comments
 (0)