From 2b0e033cdcc4da0d7b8afb695e962ad1f98f22e8 Mon Sep 17 00:00:00 2001 From: Sanghyup Lee Date: Wed, 18 Oct 2017 17:03:39 +0900 Subject: [PATCH] [WRT] Luncher should be updated properly We should use IPC_MESSAGE.LAUNCHER.UPDATE instead of WAS_EVENT because WAS_EVENT.LAUNCHER.UPDATE is undefined and launcher.js uses IPC_MESSAGE.LAUNCHER.UPDATE. Change-Id: I63115e80f4dd8e11fbe3aa52eae2465ef88ee7fa Signed-off-by: Sanghyup Lee --- wrt/src/web_application.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wrt/src/web_application.js b/wrt/src/web_application.js index 240283d..1487b37 100644 --- a/wrt/src/web_application.js +++ b/wrt/src/web_application.js @@ -1,5 +1,6 @@ 'use strict'; const WAS_EVENT = require('./was_event'); +const IPC_MESSAGE = require('./ipc_message'); const DEFAULT = require('./default_value'); const path = require('path'); const ChildProcess = require('child_process'); @@ -150,7 +151,7 @@ class WebApplication { childprocess_debug('child is killed ****************************'); self.childProcessPool.splice(self.childProcessPool.indexOf(self.childProcess), 1); childprocess_debug('childProcess length : ' + self.childProcessPool.length); - self.webwindows[0].send(WAS_EVENT.LAUNCHER.UPDATE, 'ping'); + self.webwindows[0].send(IPC_MESSAGE.LAUNCHER.UPDATE, 'ping'); }); } handleLauncherEvents() { @@ -166,7 +167,7 @@ class WebApplication { } updateLauncer() { rp_new_debug('No child_process fork : Update launcher'); - this.webwindows[0].send(WAS_EVENT.LAUNCHER.UPDATE, 'ping'); + this.webwindows[0].send(IPC_MESSAGE.LAUNCHER.UPDATE, 'ping'); } } module.exports = WebApplication; -- 2.7.4