mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-09-26 01:44:15 +00:00
Adjusted fix for issue in CryptoFileSystem when deleting a file
* CryptoWritableFile now only invokes writeTaks.get if not already closed * CryptoWritableFile now cancels writeTask before delete
This commit is contained in:
+1
-1
@@ -27,7 +27,7 @@ public class InMemoryWritableFile implements WritableFile {
|
||||
private final Consumer<Void> deleter;
|
||||
private final WriteLock writeLock;
|
||||
|
||||
private boolean open;
|
||||
private boolean open = true;
|
||||
private int position = 0;
|
||||
|
||||
public InMemoryWritableFile(Consumer<Instant> lastModifiedSetter, Consumer<Instant> creationTimeSetter, Supplier<ByteBuffer> contentGetter, Consumer<ByteBuffer> contentSetter, Consumer<Void> deleter,
|
||||
|
||||
Reference in New Issue
Block a user