Flush the buffered io

This commit is contained in:
2023-02-18 07:23:14 +01:00
parent 3e1f88b37b
commit 1a08ad4254

View File

@ -55,6 +55,8 @@ func (w *Wfile) Close() error {
var err error
err = nil
w.fw.Flush()
if w.compressed {
err = w.gf.Close()
}