Skip to content

Commit 8222646

Browse files
committed
Make sure that a progress completed update is always reported at Progress destruction
1 parent 396343f commit 8222646

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lldb/source/Core/Progress.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ Progress::~Progress() {
4545
// Make sure to always report progress completed when this object is
4646
// destructed so it indicates the progress dialog/activity should go away.
4747
std::lock_guard<std::mutex> guard(m_mutex);
48-
if (!m_completed)
49-
m_completed = m_total;
48+
m_completed = m_total;
5049
ReportProgress();
5150

5251
// Report to the ProgressManager if that subsystem is enabled.

0 commit comments

Comments
 (0)