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