Skip to content

Commit

Permalink
avoid flush repeatedly when has finished flushing (#978)
Browse files Browse the repository at this point in the history
* avoid flush repeatedly when has finished flushing (#839)

* avoid repeat flush when position finish

* Formatting

Co-authored-by: jerry.l <jerry.l@binance.com>
Co-authored-by: Thomas Heigl <thomas.heigl@gmail.com>

* Revert "avoid flush repeatedly when has finished flushing (#839)"

This reverts commit d693aa5.

* avoid flush repeatedly when has finished flushing

---------

Co-authored-by: jackjoesh <jackjoesh@sina.com>
Co-authored-by: jerry.l <jerry.l@binance.com>
Co-authored-by: Thomas Heigl <thomas.heigl@gmail.com>
  • Loading branch information
4 people committed May 19, 2023
1 parent 84189eb commit f8bd119
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/com/esotericsoftware/kryo/io/OutputChunked.java
Expand Up @@ -60,8 +60,9 @@ public void flush () throws KryoException {
} catch (IOException ex) {
throw new KryoException(ex);
}
} else {
super.flush();
}
super.flush();
}

private void writeChunkSize () throws IOException {
Expand Down

0 comments on commit f8bd119

Please sign in to comment.