mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-26 17:01:06 +00:00
Start the connectivity check straight away, rather than waiting for bootstrapping to succeed.
This commit is contained in:
parent
460768d366
commit
53196208b0
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user