mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-30 13:54:01 +00:00
core: fix unhandled errors when aborting with queued messages (#12369)
This commit is contained in:
parent
102d8e72bb
commit
a45841396f
@ -71,9 +71,6 @@ export namespace SessionPrompt {
|
||||
async (current) => {
|
||||
for (const item of Object.values(current)) {
|
||||
item.abort.abort()
|
||||
for (const callback of item.callbacks) {
|
||||
callback.reject(new DOMException("Aborted", "AbortError"))
|
||||
}
|
||||
}
|
||||
},
|
||||
)
|
||||
@ -251,9 +248,6 @@ export namespace SessionPrompt {
|
||||
return
|
||||
}
|
||||
match.abort.abort()
|
||||
for (const item of match.callbacks) {
|
||||
item.reject(new DOMException("Aborted", "AbortError"))
|
||||
}
|
||||
delete s[sessionID]
|
||||
SessionStatus.set(sessionID, { type: "idle" })
|
||||
return
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user