1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 22:58:07 +02:00

Terminate worker of previous doc

This commit is contained in:
Sriram 2014-01-20 22:27:41 +05:30
parent ac91047f6d
commit 151cd6dee8

View file

@ -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;