mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-05-28 13:24:18 +00:00
fix: Return a promise when retrying provisioning to avoid continuing after a failure
Otherwise we'll keep doing the rest of the APIBinder init steps, like reporting initial config, potentially before completing the provisioning. Change-type: patch Signed-off-by: Pablo Carranza Velez <pablo@balena.io>
This commit is contained in:
parent
1572640bce
commit
6e3bedeb1d
@ -875,7 +875,7 @@ export class APIBinder {
|
||||
delay: retryDelay,
|
||||
});
|
||||
await Bluebird.delay(retryDelay);
|
||||
this.provisionOrRetry(retryDelay);
|
||||
return this.provisionOrRetry(retryDelay);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user