To me it looks like this code should read:
> if (compressedOutput)
> {
>     curProgress.compressedPartSize = output->size();
>     curProgress.hasCompressed = true;
> }
> transferChunk(idx);

because transferChunk() calls sendProgress either in boday or via appendTransform