Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ZstdOutputStream corruption on double close
ZstdOutputStream will write out the last chunk every time close() is invoked on it, which can cause errors when the output is later decompressed. Per the java.io.Closeable interface documentation, the close() method should have no effect if invoked on an already-closed stream (which is how e.g. the core DeflaterOutputStream behaves as well), so make it a noop if the stream was already closed.
- Loading branch information