From c1c622a22ec3ad9fce59cde754841804e2189af5 Mon Sep 17 00:00:00 2001 From: Andrew Melnik Date: Mon, 31 Mar 2014 18:34:47 +0300 Subject: [PATCH] APPLINK-6291: added components unregistration before HMI shutdown --- src/components/HMI/app/AppViews.js | 8 ++++++++ src/components/HMI/ffw/RPCClient.js | 1 + 2 files changed, 9 insertions(+) diff --git a/src/components/HMI/app/AppViews.js b/src/components/HMI/app/AppViews.js index c8a5c3e..28c8687 100644 --- a/src/components/HMI/app/AppViews.js +++ b/src/components/HMI/app/AppViews.js @@ -88,6 +88,14 @@ SDL.AppViews = Em.ContainerView.extend( { FFW.BasicCommunication.OnIgnitionCycleOver(); + FFW.BasicCommunication.disconnect(); + FFW.UI.disconnect(); + FFW.VR.disconnect(); + FFW.VehicleInfo.disconnect(); + FFW.TTS.disconnect(); + FFW.Buttons.disconnect(); + FFW.Navigation.disconnect(); + if(confirm('The "ignition off" emulation executed!')){ return 'OK, Good Bye then'; } diff --git a/src/components/HMI/ffw/RPCClient.js b/src/components/HMI/ffw/RPCClient.js index 744bbbc..94ad5da 100644 --- a/src/components/HMI/ffw/RPCClient.js +++ b/src/components/HMI/ffw/RPCClient.js @@ -105,6 +105,7 @@ FFW.RPCClient = Em.Object */ disconnect: function() { + SDL.SDLController.unregisterComponentStatus(this.observer.client.componentName); this.unregisterRPCComponent(); }, -- 2.7.4