parent
fe15f660e6
commit
3621941a0d
@ -129,7 +129,8 @@ async function connectWebsocket() {
|
||||
connectWebsocket();
|
||||
cron.schedule("*/5 * * * *", update);
|
||||
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");
|
||||
connectWebsocket();
|
||||
}
|
||||
|
@ -157,7 +157,8 @@ update();
|
||||
connectWebsocket();
|
||||
cron.schedule("*/1 * * * *", update);
|
||||
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");
|
||||
connectWebsocket();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user