oops
This commit is contained in:
parent
906d77e0cc
commit
4c999c3ff2
1 changed files with 2 additions and 2 deletions
|
|
@ -33,10 +33,10 @@ function checkIfIamDead() {
|
|||
const res = await fetch('/api/health');
|
||||
if (!res.ok) {
|
||||
console.log('I\'m dead. Charging... Standby... Bzz... Bzz...')
|
||||
} else {
|
||||
console.log('I\'m alive!');
|
||||
checkHealth();
|
||||
if (checkIfIamDeadInterval) clearInterval(checkIfIamDeadInterval);
|
||||
} else {
|
||||
console.log('I\'m alive. Waiting for server to be dead...');
|
||||
}
|
||||
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue