mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-22 23:12:23 +00:00
Merge pull request #864 from balena-io/fix-bound-lambda
Fix context bind errors by switching to async/await
This commit is contained in:
commit
5146b53d94
@ -543,7 +543,8 @@ export class APIBinder {
|
|||||||
++this.targetStateFetchErrors;
|
++this.targetStateFetchErrors;
|
||||||
}
|
}
|
||||||
|
|
||||||
return Bluebird.delay(pollInterval).then(this.pollTargetState);
|
await Bluebird.delay(pollInterval);
|
||||||
|
await this.pollTargetState();
|
||||||
}
|
}
|
||||||
|
|
||||||
private async pinDevice({ app, commit }: DevicePinInfo) {
|
private async pinDevice({ app, commit }: DevicePinInfo) {
|
||||||
|
Loading…
Reference in New Issue
Block a user