Skip to content

Commit 4833a08

Browse files
committed
address bot comment
1 parent f93855b commit 4833a08

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/services/stt/STTService.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -91,20 +91,10 @@ export class STTService {
9191

9292
this.emitter.onStarted(this.sessionId)
9393
} catch (error) {
94-
// Immediately stop any processing
9594
this.isActive = false
96-
9795
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
10296
this.emitter.onStopped("error", undefined, errorMessage)
103-
104-
// Cleanup resources
10597
await this.cleanupOnError()
106-
107-
// Clear sessionId after error is sent
10898
this.sessionId = null
10999
throw error
110100
}

0 commit comments

Comments
 (0)