Skip to content

Commit

Permalink
fix: ping should change state when ping is received
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbanSdl committed May 16, 2024
1 parent 4c121dd commit b37d1f0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions web/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ export function setLastTimeChestWasAlive(time: number, sendInSecs?: number) {
sendInterval =
((sendInSecs || Number.parseInt(process.env.TIME_BEFORE_CHEST_DEATH)) + 2) *
1000;
checkChestAlive();
setTimeout(checkChestAlive, sendInterval);
}

Expand Down

0 comments on commit b37d1f0

Please sign in to comment.