Merge pull request #3797 from iamjr15/fix/idle-processor-event-race
Fix asyncio.Event race conditions in idle processors
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user