I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects

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

Merged Zlatin Balevsky requested to merge (removed):susimail-fix-iox into master
1 file
+ 1
0
Compare changes
  • Side-by-side
  • Inline
@@ -356,6 +356,7 @@ class PersistentMailCache {
@@ -356,6 +356,7 @@ class PersistentMailCache {
GzipFileBuffer gb = new GzipFileBuffer(f);
GzipFileBuffer gb = new GzipFileBuffer(f);
out = gb.getOutputStream();
out = gb.getOutputStream();
DataHelper.copy(in, out);
DataHelper.copy(in, out);
 
rb.readComplete(true);
return true;
return true;
} catch (IOException ioe) {
} catch (IOException ioe) {
_log.error("Error writing: " + f + ": " + ioe);
_log.error("Error writing: " + f + ": " + ioe);
Loading