parent
fe15f660e6
commit
3621941a0d
@ -129,7 +129,8 @@ async function connectWebsocket() {
|
|||||||
connectWebsocket();
|
connectWebsocket();
|
||||||
cron.schedule("*/5 * * * *", update);
|
cron.schedule("*/5 * * * *", update);
|
||||||
cron.schedule("*/1 * * * *", () => {
|
cron.schedule("*/1 * * * *", () => {
|
||||||
if (lastMap && Date.now() - lastMap > 10000) {
|
// 1 minute
|
||||||
|
if (lastMap && Date.now() - lastMap > 60_000) {
|
||||||
console.log("Beatsaver websocket is dead, reconnecting");
|
console.log("Beatsaver websocket is dead, reconnecting");
|
||||||
connectWebsocket();
|
connectWebsocket();
|
||||||
}
|
}
|
||||||
|
@ -157,7 +157,8 @@ update();
|
|||||||
connectWebsocket();
|
connectWebsocket();
|
||||||
cron.schedule("*/1 * * * *", update);
|
cron.schedule("*/1 * * * *", update);
|
||||||
cron.schedule("*/1 * * * *", () => {
|
cron.schedule("*/1 * * * *", () => {
|
||||||
if (lastScore && Date.now() - lastScore > 10000) {
|
// 1 minute
|
||||||
|
if (lastScore && Date.now() - lastScore > 60_000) {
|
||||||
console.log("Scoresaber websocket is dead, reconnecting");
|
console.log("Scoresaber websocket is dead, reconnecting");
|
||||||
connectWebsocket();
|
connectWebsocket();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user