We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f93855b commit 4833a08Copy full SHA for 4833a08
src/services/stt/STTService.ts
@@ -91,20 +91,10 @@ export class STTService {
91
92
this.emitter.onStarted(this.sessionId)
93
} catch (error) {
94
- // Immediately stop any processing
95
this.isActive = false
96
-
97
const errorMessage = error instanceof Error ? error.message : "Failed to start"
98
- // Preserve sessionId for error message so frontend can match the session
99
- const errorSessionId = this.sessionId
100
101
- // Send error to frontend before cleanup
102
this.emitter.onStopped("error", undefined, errorMessage)
103
104
- // Cleanup resources
105
await this.cleanupOnError()
106
107
- // Clear sessionId after error is sent
108
this.sessionId = null
109
throw error
110
}
0 commit comments