bugfix re-used buffer

This commit is contained in:
AJ ONeal 2020-05-19 03:36:20 -06:00
parent 494957c1c4
commit 38054cf331
1 changed files with 1 additions and 1 deletions

View File

@ -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 {