mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Merge pull request #8585 from Snuffleupagus/issue-8584
Check that the `MessageHandler` isn't already terminated in the `onFailure` handler in `src/core/worker.js` (issue 8584)
This commit is contained in:
commit
9e4dcf156b
1 changed files with 2 additions and 0 deletions
|
@ -654,6 +654,8 @@ var WorkerMessageHandler = {
|
|||
}
|
||||
|
||||
function onFailure(e) {
|
||||
ensureNotTerminated();
|
||||
|
||||
if (e instanceof PasswordException) {
|
||||
var task = new WorkerTask('PasswordException: response ' + e.code);
|
||||
startWorkerTask(task);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue