From a41cf99be08574185f9c66c4fdfc43764b257b09 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Tue, 5 Jun 2018 16:13:17 -0400 Subject: [PATCH] reverse condition --- lib/modules/solidity/solcW.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/modules/solidity/solcW.js b/lib/modules/solidity/solcW.js index 617eabb62..510ef98f3 100644 --- a/lib/modules/solidity/solcW.js +++ b/lib/modules/solidity/solcW.js @@ -16,17 +16,17 @@ class SolcW { load_compiler(done) { const self = this; - if (self.ipc.isClient()) { - return self.ipc.connect((err) => { - if (err) { - return self.load_compiler_internally(done); - } - self.compilerLoaded = true; - done(); - }); + if (!self.ipc.isClient()) { + return self.load_compiler_internally(done); } - self.load_compiler_internally(done); + self.ipc.connect((err) => { + if (err) { + return self.load_compiler_internally(done); + } + self.compilerLoaded = true; + done(); + }); } load_compiler_internally(done) {