do not start if platform.start does not work

This commit is contained in:
Girish Ramakrishnan
2022-02-09 19:23:18 -08:00
parent c5f9c80f89
commit ff664486ff

View File

@@ -63,7 +63,7 @@ async function start(options) {
// LOST is when existing connection breaks. REFUSED is when new connection cannot connect at all
const retry = error.reason === BoxError.DATABASE_ERROR && (error.code === 'PROTOCOL_CONNECTION_LOST' || error.code === 'ECONNREFUSED');
debug(`Failed to start services. retry=${retry} (attempt ${attempt}): ${error.message}`);
if (!retry) break;
if (!retry) throw error; // refuse to start
await delay(10000);
}
}