From 0ac83098e922c5769a7811952b7dab36fcd329e6 Mon Sep 17 00:00:00 2001 From: Chris Kleeschulte Date: Tue, 1 Sep 2015 13:17:26 -0400 Subject: [PATCH] Removed setImmediates from bitcoind.js. --- lib/services/bitcoind.js | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) 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(); + } }); };