Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't dispatch REJECT action to resolver when loadingTask was destroyed
loadingTask.promise throws after loadingTask.destroy() is called, and we call loadingTask.destroy() to destroy worker once it loaded the PDF. If we destroy it before loadingTask.promise resolves, this produces an error that should not be treated as one.
- Loading branch information