transports: don't use interruptions_allowed to avoid deprecation warning

This commit is contained in:
Aleix Conchillo Flaqué
2025-12-29 14:34:23 -08:00
parent c8f47b4b22
commit bd9a316d7a
2 changed files with 2 additions and 2 deletions

View File

@@ -477,7 +477,7 @@ class BaseInputTransport(FrameProcessor):
) )
# Make sure we notify about interruptions quickly out-of-band. # Make sure we notify about interruptions quickly out-of-band.
if should_push_immediate_interruption and self.interruptions_allowed: if should_push_immediate_interruption and self._allow_interruptions:
await self.push_interruption_task_frame_and_wait() await self.push_interruption_task_frame_and_wait()
elif self.interruption_strategies and self._bot_speaking: elif self.interruption_strategies and self._bot_speaking:
logger.debug( logger.debug(

View File

@@ -498,7 +498,7 @@ class BaseOutputTransport(FrameProcessor):
Args: Args:
_: The start interruption frame (unused). _: The start interruption frame (unused).
""" """
if not self._transport.interruptions_allowed: if not self._transport._allow_interruptions:
return return
# Cancel tasks. # Cancel tasks.