pass though IOExceptions from writer thread during close() [ci skip]

This commit is contained in:
Sebastian Stenzel
2016-01-16 01:09:10 +01:00
parent fa35b63b6d
commit fd98f0a69f

View File

@@ -114,7 +114,7 @@ class CryptoWritableFile implements WritableFile {
// TODO append padding
}
} catch (ExecutionException e) {
if (e.getCause() instanceof UncheckedIOException) {
if (e.getCause() instanceof UncheckedIOException || e.getCause() instanceof IOException) {
throw new UncheckedIOException(new IOException(e));
} else {
throw new IllegalStateException("Unexpected exception while waiting for encrypted file to be written", e);