mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-04-24 04:55:42 +00:00
Don't attempt to report any state during local mode
Even though this would never have attempted to report the state to the api during local mode, it leaves behind artifacts which would cause the state to be sometimes reported when exiting local mode. This would cause the api to reject the update unecessarily. Change-type: patch Signed-off-by: Cameron Diver <cameron@balena.io>
This commit is contained in:
parent
0b1d2b7702
commit
892cf1961e
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user