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');
|
const res = await fetch('/api/health');
|
||||||
if (!res.ok) {
|
if (!res.ok) {
|
||||||
console.log('I\'m dead. Charging... Standby... Bzz... Bzz...')
|
console.log('I\'m dead. Charging... Standby... Bzz... Bzz...')
|
||||||
} else {
|
|
||||||
console.log('I\'m alive!');
|
|
||||||
checkHealth();
|
checkHealth();
|
||||||
if (checkIfIamDeadInterval) clearInterval(checkIfIamDeadInterval);
|
if (checkIfIamDeadInterval) clearInterval(checkIfIamDeadInterval);
|
||||||
|
} else {
|
||||||
|
console.log('I\'m alive. Waiting for server to be dead...');
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue