reverse condition

This commit is contained in:
Iuri Matias 2018-06-05 16:13:17 -04:00
parent a3bb4bc53b
commit a41cf99be0

View File

@ -16,8 +16,11 @@ class SolcW {
load_compiler(done) {
const self = this;
if (self.ipc.isClient()) {
return self.ipc.connect((err) => {
if (!self.ipc.isClient()) {
return self.load_compiler_internally(done);
}
self.ipc.connect((err) => {
if (err) {
return self.load_compiler_internally(done);
}
@ -26,9 +29,6 @@ class SolcW {
});
}
self.load_compiler_internally(done);
}
load_compiler_internally(done) {
const self = this;
if (this.compilerLoaded) {