mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-14 05:48:57 +01:00
change to 10seconds
This commit is contained in:
parent
da4e2dc730
commit
e94c83c240
1 changed files with 5 additions and 3 deletions
|
@ -23,12 +23,14 @@ function init(app, config, rendertemplate) {
|
||||||
|
|
||||||
initlog("wait a few mins... pt on timeout rn");
|
initlog("wait a few mins... pt on timeout rn");
|
||||||
|
|
||||||
|
|
||||||
app.get("/*", function (req, res, next) {
|
app.get("/*", function (req, res, next) {
|
||||||
if (didstart) return next();
|
if (didstart) return next();
|
||||||
|
|
||||||
return rendertemplate(res, req, "timeout.ejs");
|
return rendertemplate(res, req, "timeout.ejs");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
didstart = true;
|
didstart = true;
|
||||||
|
|
||||||
|
@ -81,13 +83,13 @@ function init(app, config, rendertemplate) {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
}, 1580000); /* setInterval */
|
}, 99999); /* setInterval */
|
||||||
}, 30000);
|
}, 10000);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
initlog("[FAILED] Load pages \n" + err);
|
initlog("[FAILED] Load pages \n" + err);
|
||||||
console.error(err);
|
console.error(err);
|
||||||
}
|
}
|
||||||
}, 30000);
|
}, 10000);
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|
Loading…
Reference in a new issue