Skip to content

Commit e8abefc

Browse files
committed
Fix duplicate close of EncryptingWritableByteChannel
1 parent 02f57d4 commit e8abefc

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

buildsystem/dependencies.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,7 @@ ext {
8585
greenDaoVersion = '3.3.0'
8686

8787
// cloud provider libs
88-
// todo updaten
89-
cryptolibVersion = '2.2.0' // 2.2.1 is broken in regards to create files
88+
cryptolibVersion = '2.2.1'
9089

9190
dropboxVersion = '7.0.0'
9291

data/src/main/java/org/cryptomator/data/cloud/crypto/CryptoImplDecorator.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,6 @@ abstract class CryptoImplDecorator(
448448
encrypted += written.toLong()
449449
progressAware.onProgress(Progress.progress(UploadState.encryption(cryptoFile)).between(0).and(ciphertextSize).withValue(encrypted))
450450
}
451-
encryptingWritableByteChannel.close()
452451
data.modifiedDate(context).ifPresent { encryptedTmpFile.setLastModified(it.time) }
453452
progressAware.onProgress(Progress.completed(UploadState.encryption(cryptoFile)))
454453
return writeFromTmpFile(data, cryptoFile, encryptedTmpFile, progressAware, replace)

data/src/main/java/org/cryptomator/data/cloud/crypto/CryptoImplVaultFormat7.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,6 @@ open class CryptoImplVaultFormat7 : CryptoImplDecorator {
485485
encrypted += written.toLong()
486486
progressAware.onProgress(Progress.progress(UploadState.encryption(cloudFile)).between(0).and(ciphertextSize).withValue(encrypted))
487487
}
488-
encryptingWritableByteChannel.close()
489488
data.modifiedDate(context).ifPresent { encryptedTmpFile.setLastModified(it.time) }
490489
progressAware.onProgress(Progress.completed(UploadState.encryption(cloudFile)))
491490
val targetFile = targetFile(cryptoFile, cloudFile, replace)

0 commit comments

Comments
 (0)