Merge pull request #3797 from iamjr15/fix/idle-processor-event-race

Fix asyncio.Event race conditions in idle processors
This commit is contained in:
Aleix Conchillo Flaqué
2026-04-09 16:04:03 -07:00
committed by GitHub
3 changed files with 106 additions and 2 deletions

View File

@@ -85,7 +85,6 @@ class IdleFrameProcessor(FrameProcessor):
while True:
try:
await asyncio.wait_for(self._idle_event.wait(), timeout=self._timeout)
self._idle_event.clear()
except asyncio.TimeoutError:
await self._callback(self)
finally:
self._idle_event.clear()