Merge branch 'susimail-fix-iox' into 'master'

Null-out the InputStream of the Buffer object when writing.  Fixes #17

Closes #17

See merge request i2p-hackers/i2p.i2p!25
This commit is contained in:
Zlatin Balevsky
2021-04-24 14:24:32 +00:00

View File

@@ -356,6 +356,7 @@ class PersistentMailCache {
GzipFileBuffer gb = new GzipFileBuffer(f);
out = gb.getOutputStream();
DataHelper.copy(in, out);
rb.readComplete(true);
return true;
} catch (IOException ioe) {
_log.error("Error writing: " + f + ": " + ioe);