Rotation optimise. Fixes #362 (#363)

* Move early exit for no-rotation.

* lol this was meant to be 10 seconds.
This commit is contained in:
Jake Archibald
2018-12-09 07:11:11 +00:00
committed by GitHub
parent 7389c507fb
commit c2a305304b
3 changed files with 9 additions and 7 deletions

View File

@@ -20,7 +20,7 @@ import * as browserPDF from './browser-pdf/encoder';
type ProcessorWorkerApi = import('./processor-worker').ProcessorWorkerApi;
/** How long the worker should be idle before terminating. */
const workerTimeout = 1000;
const workerTimeout = 10000;
interface ProcessingJobOptions {
needsWorker?: boolean;