From f467fc5a31b5694fe23f86792b9ddf7772d0d833 Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Fri, 8 Jun 2018 19:08:32 -0400 Subject: [PATCH] Launching ipc connection depending on role --- lib/modules/console_listener/index.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/modules/console_listener/index.js b/lib/modules/console_listener/index.js index d1330345..6b1aaf52 100644 --- a/lib/modules/console_listener/index.js +++ b/lib/modules/console_listener/index.js @@ -41,7 +41,7 @@ class ConsoleListener { } listenForLogRequests(){ - try { + if(this.ipc.ipcRole === 'server'){ this.ipc.on('log', (request) => { if(request.type == 'contract-log'){ @@ -72,8 +72,6 @@ class ConsoleListener { this.logger.debug(request); } }); - } catch(e) { - // } } }