mirror of
https://github.com/ONLYOFFICE/server.git
synced 2026-04-07 14:04:35 +08:00
[bug] Remove priority decrease for PDF, XPS, and DJVU conversions (browser opening)
This commit is contained in:
@ -538,15 +538,7 @@ function* commandOpen(ctx, conn, cmd, outputData, opt_upsertRes, opt_bIsRestore)
|
||||
dataQueue.setCtx(ctx);
|
||||
dataQueue.setCmd(cmd);
|
||||
dataQueue.setToFile('Editor.bin');
|
||||
var priority = constants.QUEUE_PRIORITY_HIGH;
|
||||
var formatIn = formatChecker.getFormatFromString(cmd.getFormat());
|
||||
//decrease pdf, djvu, xps convert priority becase long open time
|
||||
if (constants.AVS_OFFICESTUDIO_FILE_CROSSPLATFORM_PDF === formatIn ||
|
||||
constants.AVS_OFFICESTUDIO_FILE_CROSSPLATFORM_DJVU === formatIn ||
|
||||
constants.AVS_OFFICESTUDIO_FILE_CROSSPLATFORM_XPS === formatIn) {
|
||||
priority = constants.QUEUE_PRIORITY_LOW;
|
||||
}
|
||||
yield* docsCoServer.addTask(dataQueue, priority);
|
||||
yield* docsCoServer.addTask(dataQueue, constants.QUEUE_PRIORITY_HIGH);
|
||||
} else {
|
||||
yield* commandOpenFillOutput(ctx, conn, cmd, outputData, opt_bIsRestore);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user