Remove while loop

This commit is contained in:
Varun Sharma 2023-11-13 16:02:18 -08:00
commit b15422ae8d
3 changed files with 5 additions and 3 deletions

3
dist/pre/index.js vendored
View file

@ -88704,7 +88704,8 @@ var setup_awaiter = (undefined && undefined.__awaiter) || function (thisArg, _ar
var statusFile = "/home/agent/agent.status";
var logFile = "/home/agent/agent.log";
var counter = 0;
while (true) {
yield setup_sleep(5000);
while (false) {
if (!external_fs_.existsSync(statusFile)) {
counter++;
if (counter > 30) {

File diff suppressed because one or more lines are too long

View file

@ -229,7 +229,8 @@ import { isArcRunner, sendAllowedEndpoints } from "./arc-runner";
var statusFile = "/home/agent/agent.status";
var logFile = "/home/agent/agent.log";
var counter = 0;
while (true) {
await sleep(5000);
while (false) {
if (!fs.existsSync(statusFile)) {
counter++;
if (counter > 30) {