Prevent circular references in the /Pages tree

This commit is contained in:
Jonas Jenwald 2020-02-08 17:43:53 +01:00
parent e2b30e9e9c
commit 3c7b7be100
7 changed files with 155 additions and 8 deletions

View file

@ -164,9 +164,14 @@ class PDFRenderingQueue {
break;
case RenderingStates.INITIAL:
this.highestPriorityPage = view.renderingId;
view.draw().finally(() => {
this.renderHighestPriority();
});
view
.draw()
.finally(() => {
this.renderHighestPriority();
})
.catch(reason => {
console.error(`renderView: "${reason}"`);
});
break;
}
return true;