diff --git a/lib/services/bitcoind.js b/lib/services/bitcoind.js index dbd2fca2..e2e755f1 100644 --- a/lib/services/bitcoind.js +++ b/lib/services/bitcoind.js @@ -194,14 +194,12 @@ Bitcoin.prototype.getInfo = function() { Bitcoin.prototype.stop = function(callback) { return bindings.stop(function(err, status) { - setImmediate(function() { - if (err) { - return callback(err); - } else { - log.info(status); - return callback(); - } - }); + if (err) { + return callback(err); + } else { + log.info(status); + return callback(); + } }); };