This commit is contained in:
Andras Bacsai 2023-04-28 15:32:50 +02:00
parent 906d77e0cc
commit 4c999c3ff2

View File

@ -33,10 +33,10 @@
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;