We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52e905c commit 4543272Copy full SHA for 4543272
src/platform/Linux/OTAImageProcessorImpl.cpp
@@ -127,6 +127,8 @@ void OTAImageProcessorImpl::HandlePrepareDownload(intptr_t context)
127
128
unlink(imageProcessor->mImageFile);
129
130
+ imageProcessor->mParams.downloadedBytes = 0;
131
+ imageProcessor->mParams.totalFileBytes = 0;
132
imageProcessor->mHeaderParser.Init();
133
imageProcessor->mOfs.open(imageProcessor->mImageFile, std::ofstream::out | std::ofstream::ate | std::ofstream::app);
134
if (!imageProcessor->mOfs.good())
0 commit comments