Skip to content

Commit f685c39

Browse files
committed
fix: Interrupt chat
1 parent 97fa997 commit f685c39

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/services/ws.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,6 +1006,9 @@ async fn handle_audio(
10061006
asr_result = tokio::select! {
10071007
r = get_input(&client, &id, asr, &mut rx) => {
10081008
log::info!("`{id}` ASR result: {r:?}");
1009+
if let Err(e) = ws_tx.send(WsCommand::EndResponse){
1010+
log::error!("`{id}` error: {e}");
1011+
};
10091012
r?
10101013
}
10111014
r = submit_to_ai(&pool, &mut ws_tx,&mut chat_session, asr_result) => {

0 commit comments

Comments
 (0)