Update offset sooner (Before getting any exceptions)

This commit is contained in:
Trustin Lee 2009-06-16 10:06:14 +00:00
parent 6e4331d9f7
commit aec7fe1704

View File

@ -94,9 +94,9 @@ public class ChunkedStream implements ChunkedInput {
break;
}
readBytes += localReadBytes;
offset += readBytes;
}
offset += readBytes;
return wrappedBuffer(chunk, 0, readBytes);
}
}