do not start if platform.start does not work
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user