mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-11 22:34:24 +00:00
fixes async on blockchains
This commit is contained in:
parent
3e0e1fda0c
commit
af4cacf496
@ -37,7 +37,7 @@ var Blockchain = function(options) {
|
|||||||
|
|
||||||
Blockchain.prototype.runCommand = function(cmd) {
|
Blockchain.prototype.runCommand = function(cmd) {
|
||||||
console.log(("running: " + cmd.underline).green);
|
console.log(("running: " + cmd.underline).green);
|
||||||
return shelljs.exec(cmd, {async:true});
|
return shelljs.exec(cmd);
|
||||||
};
|
};
|
||||||
|
|
||||||
Blockchain.prototype.run = function() {
|
Blockchain.prototype.run = function() {
|
||||||
@ -49,7 +49,7 @@ Blockchain.prototype.run = function() {
|
|||||||
console.log("===============================================================================".magenta);
|
console.log("===============================================================================".magenta);
|
||||||
var address = this.initChainAndGetAddress();
|
var address = this.initChainAndGetAddress();
|
||||||
this.client.mainCommand(address, function(cmd) {
|
this.client.mainCommand(address, function(cmd) {
|
||||||
self.runCommand(cmd);
|
self.runCommand(cmd, {async:true});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user