You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: Harden StreamingTTS stop() method per review
Implements suggestions from the AI PR review to make the shutdown procedure more robust.
- Nullifies all WebSocket event handlers (onopen, onmessage, etc.) to prevent lingering callbacks.
- Defensively checks WebSocket readyState before calling close().
- Fully resets the audio element by calling load() in a try-catch block.
0 commit comments