Merge pull request #20503 from andriivitiv/Fix-Worker-was-terminated-error

Fix `Worker was terminated` error when loading is cancelled
This commit is contained in:
calixteman 2026-02-06 09:59:05 +01:00 committed by GitHub
commit 58ac273f1f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -319,7 +319,9 @@ class WorkerMessageHandler {
}
function onFailure(ex) {
ensureNotTerminated();
if (terminated) {
return;
}
if (ex instanceof PasswordException) {
const task = new WorkerTask(`PasswordException: response ${ex.code}`);