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

Skip to content
Snippets Groups Projects
Verified Commit a1172c87 authored by zzz's avatar zzz
Browse files

Close buffer on failure too

parent cc223626
No related branches found
No related tags found
No related merge requests found
......@@ -356,10 +356,11 @@ class PersistentMailCache {
GzipFileBuffer gb = new GzipFileBuffer(f);
out = gb.getOutputStream();
DataHelper.copy(in, out);
rb.readComplete(true);
rb.readComplete(true);
return true;
} catch (IOException ioe) {
_log.error("Error writing: " + f + ": " + ioe);
rb.readComplete(false);
return false;
} finally {
if (in != null)
......
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