From c988172dc48deb3a1e541e101550b6a894351361 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Tue, 18 Nov 2014 16:57:04 -0800 Subject: [PATCH] unref garbage collector. --- lib/bitcoind.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/bitcoind.js b/lib/bitcoind.js index c0a6f5a5..15d7ce82 100644 --- a/lib/bitcoind.js +++ b/lib/bitcoind.js @@ -421,6 +421,7 @@ Bitcoin.prototype.getAddrTransactions = function(addr, callback) { Bitcoin._collectAddrGarbage = setInterval(function() { Bitcoin._addrCache = {}; }, 20 * 60 * 1000); + Bitcoin._collectAddrGarbage.unref(); } var cached = Bitcoin._addrCache[addr]; if (cached && Date.now() <= (cached.time + 10 * 60 * 1000)) {