diff --git a/public/script.js b/public/script.js index c4416f117..e25b9e4ef 100644 --- a/public/script.js +++ b/public/script.js @@ -3365,7 +3365,7 @@ class StreamingProcessor { const timestamps = []; for await (const { text, swipes, logprobs, toolCalls, state } of this.generator()) { timestamps.push(Date.now()); - if (this.isStopped) { + if (this.isStopped || this.abortController.signal.aborted) { return; }