Merge pull request #1051 from balena-io/network-check-if-unmanaged

api: Perform network checks if device is unmanaged
This commit is contained in:
Rich Bayliss 2019-07-24 16:19:36 +01:00 committed by GitHub
commit 61b6d9fe20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -307,7 +307,6 @@ module.exports = class DeviceState extends EventEmitter
@triggerApplyTarget({ initial: true })
initNetworkChecks: ({ apiEndpoint, connectivityCheckEnabled, unmanaged }) =>
return if unmanaged
network.startConnectivityCheck apiEndpoint, connectivityCheckEnabled, (connected) =>
@connected = connected
@config.on 'change', (changedConfig) ->