Removed setImmediates from bitcoind.js.
This commit is contained in:
parent
f08a9c66bf
commit
0ac83098e9
|
@ -194,14 +194,12 @@ Bitcoin.prototype.getInfo = function() {
|
||||||
|
|
||||||
Bitcoin.prototype.stop = function(callback) {
|
Bitcoin.prototype.stop = function(callback) {
|
||||||
return bindings.stop(function(err, status) {
|
return bindings.stop(function(err, status) {
|
||||||
setImmediate(function() {
|
if (err) {
|
||||||
if (err) {
|
return callback(err);
|
||||||
return callback(err);
|
} else {
|
||||||
} else {
|
log.info(status);
|
||||||
log.info(status);
|
return callback();
|
||||||
return callback();
|
}
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue