From 38054cf3312dbb74ace911ef351ef5e96aa73265 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 19 May 2020 03:36:20 -0600 Subject: [PATCH] bugfix re-used buffer --- mplexer/packer/decoder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mplexer/packer/decoder.go b/mplexer/packer/decoder.go index c968e60..8665338 100644 --- a/mplexer/packer/decoder.go +++ b/mplexer/packer/decoder.go @@ -33,8 +33,8 @@ func (d *Decoder) StreamDecode(handler Handler, bufferSize int) error { } go func() { - b := make([]byte, bufferSize) for { + b := make([]byte, bufferSize) //fmt.Println("loopers gonna loop") n, err := d.r.Read(b) if n > 0 {