Skip to content

Node.js based forum software built for the modern web

lol wtf

Julian Lambbc02dcc5d67
diff --git a/src/upgrade.js b/src/upgrade.js
index b860a642ba..8dce35b901 100644
--- a/src/upgrade.js
+++ b/src/upgrade.js
@@ -347,7 +347,7 @@ Upgrade.upgrade = function (callback) {
// Adding in another check here in case a post was improperly dismissed (flag count > 1 but no flags in db)
if (!data.uids.length || !data.reasons.length) {
- setInterval(next);
+ return setImmediate(next);
}
// Just take the first entry