Terminate worker of previous doc
This commit is contained in:
parent
ac91047f6d
commit
151cd6dee8
@ -524,6 +524,10 @@ var PDFView = {
|
||||
}
|
||||
}
|
||||
|
||||
// Terminate worker of the previous document if any.
|
||||
if (this.pdfDocument) {
|
||||
this.pdfDocument.destroy();
|
||||
}
|
||||
this.pdfDocument = null;
|
||||
var self = this;
|
||||
self.loading = true;
|
||||
|
Loading…
Reference in New Issue
Block a user