mirror of
https://github.com/moltbot/moltbot.git
synced 2026-03-08 06:54:24 +00:00
fix(android): drainingTts identity check, mark stopped on WebSocket failure
- Codex P2: drain coroutine now only clears drainingTts if it's the same instance (=== check), preventing a newer drain from being unreachable by stopTts. - Codex P2: set stopped=true on WebSocket onFailure so subsequent sendText calls are rejected and stale state doesn't persist.
This commit is contained in:
committed by
Ayaan Zaidi
parent
ccca99c472
commit
ba430cc65b
@@ -178,6 +178,7 @@ class ElevenLabsStreamingTts(
|
||||
|
||||
override fun onFailure(webSocket: WebSocket, t: Throwable, response: Response?) {
|
||||
Log.e(TAG, "WebSocket error: ${t.message}")
|
||||
stopped = true
|
||||
cleanup()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user