diff --git a/src/rapidgzip/zlib.hpp b/src/rapidgzip/zlib.hpp index f3bb8aa5..492c46ff 100644 --- a/src/rapidgzip/zlib.hpp +++ b/src/rapidgzip/zlib.hpp @@ -369,11 +369,10 @@ ZlibInflateWrapper::readStream( uint8_t* const output, * the footer! * - [ ] test 1000x concatentation of small test files * - [ ] test exact created indexes, i.e., chunks should probably not include footers for downwards compatibility! - * - [ ] add python API to get file type */ - //if ( !progressedBits && !progressedOutput && ( m_stream.total_out == 0 ) && ( oldUnusedBits == 0 ) ) { - // break; - //} + if ( !progressedBits && !progressedOutput && ( m_stream.total_out == 0 ) && ( oldUnusedBits == 0 ) ) { + break; + } decodedSize += m_stream.total_out; /* If we started with raw deflate, then we also have to skip over the gzip footer.