Skip to content

Commit

Permalink
Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Balearica committed Mar 3, 2025
1 parent a160ffa commit 3ce110e
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions mupdf/mupdf-async.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,15 +178,15 @@ export async function initMuPDFWorker() {
worker.postMessage(['PING']);
}

setTimeout(() => {
if (ready) {

console.log(`Worker ${workerId} is ready after timeout`);
return;
}
console.log(`Worker ${workerId} initialization timed out`);
workerResReject('Worker initialization timed out');
}, 5000);
// setTimeout(() => {
// if (ready) {

// console.log(`Worker ${workerId} is ready after timeout`);
// return;
// }
// console.log(`Worker ${workerId} initialization timed out`);
// workerResReject('Worker initialization timed out');
// }, 5000);

console.log(`Awaiting workerRes for ${workerId}`);

Expand Down

0 comments on commit 3ce110e

Please sign in to comment.