mirror of
https://github.com/nextcloud/android-library.git
synced 2025-07-21 23:47:23 +00:00
Merge pull request #1724 from Alexander-Ger-Reich/Alexander-Ger-Reich-patch-1
Fixing a data transfer error
This commit is contained in:
@ -103,7 +103,7 @@ public class ChunkFromFileChannelRequestEntity implements RequestEntity, Progres
|
||||
if (size == 0) {
|
||||
size = -1;
|
||||
}
|
||||
long maxCount = Math.min(mOffset + length - 1, mChannel.size());
|
||||
long maxCount = Math.min(mOffset + length, mChannel.size());
|
||||
while (mChannel.position() < maxCount) {
|
||||
readCount = mChannel.read(mBuffer);
|
||||
try {
|
||||
|
Reference in New Issue
Block a user