Fix upload length update.

This commit is contained in:
Carl Norum 2017-02-25 20:06:04 -08:00
parent 68c8ad4f86
commit 20e6a6f43d

View File

@ -451,8 +451,8 @@ function(
} else if (ctx.verifyIntegrityPending !== d.verifyIntegrityPending) {
ctx.verifyIntegrityPending = d.verifyIntegrityPending;
}
if (ctx.uploadLength !== d.uploadength) {
ctx.uploadLength = d.uploadlength;
if (ctx.uploadLength !== d.uploadLength) {
ctx.uploadLength = d.uploadLength;
ctx.fmtUploadLength = utils.fmtsize(d.uploadLength);
}
if (ctx.pieceLength !== d.pieceLength) {