Skip to content

Commit 4543272

Browse files
nivi-applepull[bot]
authored andcommitted
Reset the downloadedBytes and totalFileBytes in the OTAImageProgress params to 0 when we prepare for download for BDX (#28309)
1 parent 52e905c commit 4543272

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/platform/Linux/OTAImageProcessorImpl.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ void OTAImageProcessorImpl::HandlePrepareDownload(intptr_t context)
127127

128128
unlink(imageProcessor->mImageFile);
129129

130+
imageProcessor->mParams.downloadedBytes = 0;
131+
imageProcessor->mParams.totalFileBytes = 0;
130132
imageProcessor->mHeaderParser.Init();
131133
imageProcessor->mOfs.open(imageProcessor->mImageFile, std::ofstream::out | std::ofstream::ate | std::ofstream::app);
132134
if (!imageProcessor->mOfs.good())

0 commit comments

Comments
 (0)