Skip to content

Commit

Permalink
Merge pull request #24 from saalfeldlab/fix/closeOutputStream
Browse files Browse the repository at this point in the history
fix: output stream on LockedWriters where not closing themselves
  • Loading branch information
bogovicj authored Feb 22, 2024
2 parents ebea346 + a493137 commit 4a840b9
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,11 @@ public Reader newReader() throws IOException {
public OutputStream newOutputStream() throws IOException {

checkWritable();
return new S3OutputStream();
final S3OutputStream s3Out = new S3OutputStream();
synchronized (resources) {
resources.add(s3Out);
}
return s3Out;
}

@Override
Expand Down

0 comments on commit 4a840b9

Please sign in to comment.