Skip to content

Commit 5bd60dd

Browse files
committed
Closes #158
1 parent 2594595 commit 5bd60dd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/cryptomator/cryptofs/ch/CleartextFileChannel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ protected boolean isReadable() {
9393
}
9494

9595
@Override
96-
protected int readLocked(ByteBuffer dst, long position) throws IOException {
96+
protected synchronized int readLocked(ByteBuffer dst, long position) throws IOException {
9797
int origLimit = dst.limit();
9898
long limitConsideringEof = fileSize.get() - position;
9999
if (limitConsideringEof < 1) {

0 commit comments

Comments
 (0)