소스 검색

forgot one place in commit fa35b63 [ci skip]

Sebastian Stenzel 9 년 전
부모
커밋
9278426131
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      main/filesystem-crypto/src/main/java/org/cryptomator/filesystem/crypto/CryptoWritableFile.java

+ 1 - 1
main/filesystem-crypto/src/main/java/org/cryptomator/filesystem/crypto/CryptoWritableFile.java

@@ -120,7 +120,7 @@ class CryptoWritableFile implements WritableFile {
 				throw new IllegalStateException("Unexpected exception while waiting for encrypted file to be written", e);
 			}
 		} catch (InterruptedException e) {
-			Thread.currentThread().interrupt();
+			throw new UncheckedIOException(new InterruptedIOException("Task interrupted while flushing encrypted content"));
 		} finally {
 			executorService.shutdownNow();
 			file.close();