mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
double static:app.load timeout
This commit is contained in:
@@ -233,7 +233,7 @@ async function fireStaticHook(hook, hookList, params) {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
// eslint-disable-next-line
|
// eslint-disable-next-line
|
||||||
await timeout(hookFn(params), 5000, 'timeout');
|
await timeout(hookFn(params), 10000, 'timeout');
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
if (err && err.message === 'timeout') {
|
if (err && err.message === 'timeout') {
|
||||||
winston.warn(`[plugins] Callback timed out, hook '${hook}' in plugin '${hookObj.id}'`);
|
winston.warn(`[plugins] Callback timed out, hook '${hook}' in plugin '${hookObj.id}'`);
|
||||||
|
|||||||
Reference in New Issue
Block a user