mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
9cfa4b3f84456d776a4ecb30c8594c4d74bc95e3
This fixes the bug we saw with 'RangeError: Maximum call stack size exceeded' if lots of docs are already in s3 cb() gets called synchronously multiple times quickly which can cause the execption. I am not sure where the recursion is, maybe inside async. doing setImmediate(cb) also fixes the issue as I beilve it gives the process chance to clear the stack. Similar to process.nextTick
Languages
JavaScript
61.6%
TypeScript
31.8%
SCSS
2.5%
Java
2%
Pug
0.7%
Other
1.2%