add check compressor's byte size when finish compress
This commit is contained in:
parent
d0b2c5850b
commit
64ff30f360
|
@ -135,7 +135,7 @@ public class BlockCompressorStream extends CompressorStream {
|
|||
|
||||
@Override
|
||||
public void finish() throws IOException {
|
||||
if (!compressor.finished()) {
|
||||
if (!compressor.finished() && compressor.getBytesRead() > 0) {
|
||||
rawWriteInt((int)compressor.getBytesRead());
|
||||
compressor.finish();
|
||||
while (!compressor.finished()) {
|
||||
|
|
Loading…
Reference in New Issue