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

Skip to content
Snippets Groups Projects
Commit cc223626 authored by Zlatin Balevsky's avatar Zlatin Balevsky
Browse files

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

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

Closes #17

See merge request !25
parents 025445fc c58ccfa2
No related branches found
No related tags found
1 merge request!25Null-out the InputStream of the Buffer object when writing. Fixes #17
...@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment