From 6f87b1db1852b10454369f49b8dd0cd2f251429d Mon Sep 17 00:00:00 2001 From: Pablo Carranza Velez Date: Wed, 2 Aug 2017 20:07:13 -0300 Subject: [PATCH] Avoid starting apps on startup if device has to reboot due to a configuration change Change-Type: patch Signed-off-by: Pablo Carranza Velez --- src/application.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/application.coffee b/src/application.coffee index 8ab06021..87fb5e96 100644 --- a/src/application.coffee +++ b/src/application.coffee @@ -860,7 +860,7 @@ application.initialize = -> .then -> knex('app').select() .map (app) -> - unlockAndStart(app) if !application.localMode + unlockAndStart(app) if !application.localMode and !device.shuttingDown .catch (error) -> console.error('Error starting apps:', error) .then ->