Commit e09d340
committed
fix: interview stuck after first question - listener restart race condition
- finishSpeaking was checking !isListening which could already be true
from recognition.onend auto-restart, preventing startListening()
- Now force-stops stale recognition, resets isListening=false, then
restarts with 200ms delay to avoid collision with onend handler
- Added debug logging for listener restart flow1 parent cd4dafe commit e09d340
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3205 | 3205 | | |
3206 | 3206 | | |
3207 | 3207 | | |
3208 | | - | |
| 3208 | + | |
| 3209 | + | |
| 3210 | + | |
| 3211 | + | |
3209 | 3212 | | |
3210 | 3213 | | |
3211 | 3214 | | |
3212 | | - | |
| 3215 | + | |
| 3216 | + | |
| 3217 | + | |
| 3218 | + | |
3213 | 3219 | | |
3214 | 3220 | | |
3215 | 3221 | | |
| |||
0 commit comments