diff --git a/seekbuf/seekbuf.go b/seekbuf/seekbuf.go index 8285fa4..be10e25 100644 --- a/seekbuf/seekbuf.go +++ b/seekbuf/seekbuf.go @@ -45,6 +45,7 @@ func (b *Buffer) Rewind() { // Close clears all the data out of the buffer and sets the read position to 0. func (b *Buffer) Close() error { - b.Clear() + b.data = nil + b.pos = 0 return nil }