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