unref garbage collector.

This commit is contained in:
Christopher Jeffrey 2014-11-18 16:57:04 -08:00
parent 0be9143e32
commit c988172dc4
1 changed files with 1 additions and 0 deletions

View File

@ -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)) {