Fix issue 209.

This commit is contained in:
David Kocher
2015-08-17 10:11:55 +02:00
parent 742553912c
commit 5d81e87bce

View File

@@ -194,7 +194,10 @@ public class RemoteFile
@Override @Override
public long skip(long n) throws IOException { public long skip(long n) throws IOException {
return (this.fileOffset = Math.min(fileOffset + n, length())); final long fileLength = length();
final Long previousFileOffset = fileOffset;
fileOffset = Math.min(fileOffset + n, fileLength);
return fileOffset - previousFileOffset;
} }
@Override @Override