Update index.js
This commit is contained in:
parent
1d53646101
commit
8d4f9f5a6e
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user