Skip to content

Commit a5f30f7

Browse files
committed
reset assistantPollAbortController when needed
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
1 parent 2f0b6d7 commit a5f30f7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/assistant.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -598,6 +598,7 @@ export async function pollTask(taskId, obj, updateOutput = true, callback = upda
598598
window.assistantPollRetryTimerId = null
599599
window.assistantPollRetryDelay = 5000
600600
window.assistantPollTaskId = null
601+
window.assistantPollAbortController = null
601602
}
602603
reject(new Error('task-not-found'))
603604
return
@@ -610,6 +611,7 @@ export async function pollTask(taskId, obj, updateOutput = true, callback = upda
610611
window.assistantPollRetryTimerId = null
611612
window.assistantPollRetryDelay = 5000
612613
window.assistantPollTaskId = null
614+
window.assistantPollAbortController = null
613615
}
614616
reject(new Error('pollTask non-retryable error: ' + status))
615617
return

0 commit comments

Comments
 (0)