Fix some bugs with AI

This commit is contained in:
Jon Staab
2026-05-28 11:57:16 -07:00
parent 3b2f2b14e4
commit 76f65e1815
11 changed files with 69 additions and 50 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ export const publishOne = (options: PublishOneOptions) =>
const cleanup = once(() => {
options.signal?.removeEventListener("abort", abort)
options.onComplete?.(result)
clearTimeout(timeoutId)
if (timeoutId) clearTimeout(timeoutId)
adapter.cleanup()
resolve(result)
})