Merge pull request #962 from balena-io/fix-local-mode-exit-state-report

Don't attempt to report any state during local mode
This commit is contained in:
CameronDiver 2019-04-10 22:07:20 +01:00 committed by GitHub
commit d0191309b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -521,6 +521,9 @@ export class APIBinder {
private reportCurrentState(): null {
(async () => {
if ((await this.config.get('localMode')) === true) {
return;
}
this.reportPending = true;
try {
const currentDeviceState = await this.deviceState.getStatus();