mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-11 14:34:40 +00:00
reverse condition
This commit is contained in:
parent
a3bb4bc53b
commit
a41cf99be0
@ -16,8 +16,11 @@ class SolcW {
|
|||||||
|
|
||||||
load_compiler(done) {
|
load_compiler(done) {
|
||||||
const self = this;
|
const self = this;
|
||||||
if (self.ipc.isClient()) {
|
if (!self.ipc.isClient()) {
|
||||||
return self.ipc.connect((err) => {
|
return self.load_compiler_internally(done);
|
||||||
|
}
|
||||||
|
|
||||||
|
self.ipc.connect((err) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
return self.load_compiler_internally(done);
|
return self.load_compiler_internally(done);
|
||||||
}
|
}
|
||||||
@ -26,9 +29,6 @@ class SolcW {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
self.load_compiler_internally(done);
|
|
||||||
}
|
|
||||||
|
|
||||||
load_compiler_internally(done) {
|
load_compiler_internally(done) {
|
||||||
const self = this;
|
const self = this;
|
||||||
if (this.compilerLoaded) {
|
if (this.compilerLoaded) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user