Update index.js

This commit is contained in:
sairajzero 2023-02-05 23:02:38 +05:30
parent 1d53646101
commit 8d4f9f5a6e

View File

@ -1001,16 +1001,14 @@ AddressService.prototype._streamAddressSummary = function(address, options, stre
//wait for queue to complete
function(next) {
if(!q.started){ //no tx
console.debug("NO QUEUE, END");
console.debug("WAITING FOR QUEUE TO COMPLETE", q.started)
if(!q.started) //No tx in query
return next();
}
console.debug("WAITING FOR DRAIN")
q.drain = ()=> {
console.debug("END-DRAIN");
next();
};
else
q.drain = () => next();
}
], callback);