From 53196208b0860709e9cc149911abc2b21e4be141 Mon Sep 17 00:00:00 2001 From: Pagan Gazzard Date: Thu, 4 Dec 2014 16:01:20 +0000 Subject: [PATCH] Start the connectivity check straight away, rather than waiting for bootstrapping to succeed. --- src/app.coffee | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/app.coffee b/src/app.coffee index 6c211283..24686df5 100644 --- a/src/app.coffee +++ b/src/app.coffee @@ -33,6 +33,8 @@ ensureConnected = (continuous = false) -> ensureConnected(continuous) , 10 * 1000) # Every 10 seconds perform this check. +console.log('Starting connectivity check..') +ensureConnected(true) knex('config').select('value').where(key: 'uuid').then ([ uuid ]) -> if not uuid?.value @@ -92,9 +94,6 @@ knex('config').select('value').where(key: 'uuid').then ([ uuid ]) -> setInterval(updateIpAddr, 30 * 1000) # Every 30s updateIpAddr() - console.log('Starting connectivity check..') - ensureConnected(true) - # Tell the supervisor updater that we have successfully started, so that it can do whatever it needs to. supervisor.startupSuccessful()