diff --git a/services/updater.cpp b/services/updater.cpp index 5e99ac4b3297b09b02af8fcb0d68d76e32f61cf4..79f94047b51195a193598814e030b10397b3ca6a 100644 --- a/services/updater.cpp +++ b/services/updater.cpp @@ -244,6 +244,9 @@ static void HandleChildOutput(const std::string &buffer, int32_t bufferLen, return; } g_tmpProgressValue = g_tmpProgressValue + g_tmpValue; + if (g_tmpProgressValue == 0) { + return; + } g_progressBar->SetProgressValue(g_tmpProgressValue); } else { LOG(WARNING) << "Child process returns unexpected message.";