diff --git a/ucapi/api.py b/ucapi/api.py index 5e30941..428201d 100644 --- a/ucapi/api.py +++ b/ucapi/api.py @@ -620,7 +620,7 @@ async def _run_voice_handler(self, session: VoiceSession) -> None: session.end(VoiceEndReason.ERROR, ex) finally: # Ensure iterator is unblocked and session is cleaned up - await self._cleanup_voice_session(session.session_id) + await self._cleanup_voice_session(session.key) def _schedule_voice_timeout(self, key: VoiceSessionKey) -> None: """Schedule the timeout task for a voice session.