Terminate PDF worker after processing PDFs queue

Fixes #2421
This commit is contained in:
Martynas Bagdonas 2022-03-17 14:25:36 +02:00
parent edf0c31bdb
commit 388d18d017

View file

@ -55,6 +55,8 @@ class PDFWorker {
} }
} }
this._processingQueue = false; this._processingQueue = false;
this._worker.terminate();
this._worker = null;
} }
async _enqueue(fn, isPriority) { async _enqueue(fn, isPriority) {