We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2594595 commit 5bd60ddCopy full SHA for 5bd60dd
1 file changed
src/main/java/org/cryptomator/cryptofs/ch/CleartextFileChannel.java
@@ -93,7 +93,7 @@ protected boolean isReadable() {
93
}
94
95
@Override
96
- protected int readLocked(ByteBuffer dst, long position) throws IOException {
+ protected synchronized int readLocked(ByteBuffer dst, long position) throws IOException {
97
int origLimit = dst.limit();
98
long limitConsideringEof = fileSize.get() - position;
99
if (limitConsideringEof < 1) {
0 commit comments