Merge pull request #16957 from Snuffleupagus/SaveDocument-more-await

Use `await` even more in the "SaveDocument" worker-thread handler
This commit is contained in:
Tim van der Meij 2023-09-16 14:31:05 +02:00 committed by GitHub
commit 7f8de83e96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -588,8 +588,8 @@ class WorkerMessageHandler {
);
}
}
const refs = await Promise.all(promises);
return Promise.all(promises).then(refs => {
let newRefs = [];
let xfaData = null;
if (isPureXfa) {
@ -671,7 +671,6 @@ class WorkerMessageHandler {
}).finally(() => {
xref.resetNewTemporaryRef();
});
});
}
);