diff --git a/src/main/java/rsb/io/Asynchronous.java b/src/main/java/rsb/io/Asynchronous.java index 08ca51f..d6c4026 100644 --- a/src/main/java/rsb/io/Asynchronous.java +++ b/src/main/java/rsb/io/Asynchronous.java @@ -38,10 +38,6 @@ public void read(File file, Consumer c, Runnable finished) throws IOExcep Collections.singleton(StandardOpenOption.READ), this.executorService); // <2> ByteBuffer buffer = ByteBuffer.allocate(FileCopyUtils.BUFFER_SIZE); this.fileChannel.read(buffer, position, buffer, this); // <3> - while (this.bytesRead > 0) { - this.position = this.position + this.bytesRead; - this.fileChannel.read(buffer, this.position, buffer, this); - } } @Override