unref garbage collector.
This commit is contained in:
parent
0be9143e32
commit
c988172dc4
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue