Skip to content

Commit

Permalink
Fix binxml's zipReader closing the whole zip on file Next() call
Browse files Browse the repository at this point in the history
  • Loading branch information
Vojtech Bocek committed Apr 14, 2016
1 parent 78d8134 commit f35ed93
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion zipreader.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ func (zr *ZipReaderFile) Next() bool {
}

if zr.internalReader != nil {
zr.internalReader.Close()
if zr.internalReader != zr.zipFile {
zr.internalReader.Close()
}
zr.internalReader = nil
}

Expand Down

0 comments on commit f35ed93

Please sign in to comment.