StartFrame should be the first frame every processor receives

Fixes #427
This commit is contained in:
Aleix Conchillo Flaqué
2024-08-29 22:43:01 -07:00
parent 05f0492a8d
commit 37e2388758
4 changed files with 10 additions and 4 deletions

View File

@@ -134,8 +134,8 @@ class BaseOutputTransport(FrameProcessor):
# queue.
#
if isinstance(frame, CancelFrame):
await self.push_frame(frame, direction)
await self.cancel(frame)
await self.push_frame(frame, direction)
elif isinstance(frame, StartInterruptionFrame) or isinstance(frame, StopInterruptionFrame):
await self.push_frame(frame, direction)
await self._handle_interruptions(frame)