Fixing issues

This commit is contained in:
Caleb Gardner
2022-06-18 06:30:04 -05:00
parent cde6a265a1
commit 9ac8fef3b2
13 changed files with 189 additions and 425 deletions
+8 -3
View File
@@ -21,9 +21,14 @@ func NewReader(r io.Reader, d decompress.Decompressor) (*Reader, error) {
}
func (r *Reader) Advance() error {
if clr, ok := r.cur.(io.Closer); ok {
clr.Close()
}
//For some reason things get closed improperly and causes issues.
//NO IDEA HOW THIS IS HAPPENING.
// if clr, ok := r.cur.(io.Closer); ok {
// clr.Close()
// r.cur = nil
// }
var size uint16
err := binary.Read(r.master, binary.LittleEndian, &size)
if err != nil {