Removed setImmediates from bitcoind.js.

This commit is contained in:
Chris Kleeschulte 2015-09-01 13:17:26 -04:00
parent f08a9c66bf
commit 0ac83098e9
1 changed files with 6 additions and 8 deletions

View File

@ -194,7 +194,6 @@ 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 {
@ -202,7 +201,6 @@ Bitcoin.prototype.stop = function(callback) {
return callback(); return callback();
} }
}); });
});
}; };
module.exports = Bitcoin; module.exports = Bitcoin;