From e5c86ebe5f547abbf45f20424034bbfdb62e3b25 Mon Sep 17 00:00:00 2001 From: sairajzero Date: Sun, 5 Feb 2023 22:45:43 +0530 Subject: [PATCH] Update index.js --- lib/services/address/index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/services/address/index.js b/lib/services/address/index.js index b6a85511..200c181f 100644 --- a/lib/services/address/index.js +++ b/lib/services/address/index.js @@ -1000,6 +1000,12 @@ AddressService.prototype._streamAddressSummary = function(address, options, stre //wait for queue to complete function(next) { + + if(!q.started){ //no tx + console.debug("NO QUEUE, END"); + return next(); + } + console.debug("WAITING FOR DRAIN") q.drain = ()=> { console.debug("END-DRAIN");