Skip to content

Node.js based forum software built for the modern web

another process.nextTick

Baris Usakli30ae0a5499c9
diff --git a/src/database/mongo/sorted.js b/src/database/mongo/sorted.js
index 92838a1086..49b5862fe2 100644
--- a/src/database/mongo/sorted.js
+++ b/src/database/mongo/sorted.js
@@ -503,7 +503,7 @@ module.exports = function (db, module) {
if (options.interval) {
setTimeout(next, options.interval);
} else {
- next();
+ process.nextTick(next);
}
},
], next);