reverse condition
This commit is contained in:
parent
a3bb4bc53b
commit
a41cf99be0
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue