mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-20 14:13:08 +00:00
Fix an infinite loop that could happen when trying to bootstrap if the key exchange fails
Change-Type: patch
This commit is contained in:
parent
89ccb6480d
commit
42cd3a6b01
@ -156,6 +156,7 @@ bootstrapper.done = new Promise (resolve) ->
|
|||||||
knex('config').update(value: userConfig.deviceApiKey).where(key: 'apiKey')
|
knex('config').update(value: userConfig.deviceApiKey).where(key: 'apiKey')
|
||||||
.then ->
|
.then ->
|
||||||
fs.writeFileAsync(configPath, JSON.stringify(userConfig))
|
fs.writeFileAsync(configPath, JSON.stringify(userConfig))
|
||||||
|
return
|
||||||
|
|
||||||
|
|
||||||
bootstrapper.bootstrapped = false
|
bootstrapper.bootstrapped = false
|
||||||
|
Loading…
Reference in New Issue
Block a user