Skip to content

Commit e7edfcf

Browse files
committed
test
1 parent 4df8ce6 commit e7edfcf

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

frontend/src/routes.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -891,8 +891,8 @@ const wssUpgrade = (req, socket, head) => {
891891
ws.send(JSON.stringify(data))
892892
})
893893
stream.events.on('close', () => {
894-
ws.close()
895-
wss1.close()
894+
// ws.close()
895+
// wss1.close()
896896
})
897897
ws.on('message', (data) => {
898898
if (Buffer.isBuffer(data)) {

frontend/src/stt/azure.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,12 @@ class AzureSTT {
7676
}
7777
recognizer.canceled = (s, e) => {
7878
console.log(e.errorDetails)
79-
setTimeout(() => {
80-
const event = {
81-
status: 'error',
82-
err: `Azure STT failed: ${getAzureErrorDetails(e)}`
83-
}
84-
events.emit('data', event)
85-
eventHistory.push(event)
86-
}, 5000)
79+
const event = {
80+
status: 'error',
81+
err: `Azure STT failed: ${getAzureErrorDetails(e)}`
82+
}
83+
events.emit('data', event)
84+
eventHistory.push(event)
8785
}
8886
recognizer.startContinuousRecognitionAsync()
8987

0 commit comments

Comments
 (0)