if(self.logs.length > 0) { while(self.logs.length > 0) { this.queue(self.logs.pop()); return this.queue(c); this.queue(c); }, function end() { if (self.listeners('response').length > 0) return; this.queue(null); }); res.queue(Buffer.from('0000')); res.queue(null); }); if(self.logs.length > 0) { while(self.logs.length > 0) { respStream.queue(self.logs.pop()); respStream.queue(Buffer.from('0000')); respStream.queue(null);