Skip to content

Commit a9b5a56

Browse files
committed
fix: voice session cleanup
Correctly remove the voice session when the voice handler finishes.
1 parent 08c18e0 commit a9b5a56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ucapi/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ async def _run_voice_handler(self, session: VoiceSession) -> None:
620620
session.end(VoiceEndReason.ERROR, ex)
621621
finally:
622622
# Ensure iterator is unblocked and session is cleaned up
623-
await self._cleanup_voice_session(session.session_id)
623+
await self._cleanup_voice_session(session.key)
624624

625625
def _schedule_voice_timeout(self, key: VoiceSessionKey) -> None:
626626
"""Schedule the timeout task for a voice session.

0 commit comments

Comments
 (0)