Stop smooth streaming immediately on abort

9710d88a88a7cd02ad68cdcdc1cc857d2db154f0

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +1 -1Ignore whitespace
public/script.js+1 -1
@@ -3365,7 +3365,7 @@ class StreamingProcessor {
3365 const timestamps = [];3365 const timestamps = [];
3366 for await (const { text, swipes, logprobs, toolCalls, state } of this.generator()) {3366 for await (const { text, swipes, logprobs, toolCalls, state } of this.generator()) {
3367 timestamps.push(Date.now());3367 timestamps.push(Date.now());
3368 if (this.isStopped) {3368 if (this.isStopped || this.abortController.signal.aborted) {
3369 return;3369 return;
3370 }3370 }
33713371