Skip to content

Commit

Permalink
Closes #158
Browse files Browse the repository at this point in the history
  • Loading branch information
infeo committed Mar 15, 2023
1 parent 2594595 commit 5bd60dd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ protected boolean isReadable() {
}

@Override
protected int readLocked(ByteBuffer dst, long position) throws IOException {
protected synchronized int readLocked(ByteBuffer dst, long position) throws IOException {
int origLimit = dst.limit();
long limitConsideringEof = fileSize.get() - position;
if (limitConsideringEof < 1) {
Expand Down

0 comments on commit 5bd60dd

Please sign in to comment.