Skip to content

Commit c846f8b

Browse files
[lldb][progress] Always report progress upon Progress object destruction (#73605)
This commit allows a final progress report upon the destruction of the `Progress` object to happen at all times as opposed to when the progress was not completed.
1 parent 98e674c commit c846f8b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lldb/source/Core/Progress.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,9 @@ Progress::~Progress() {
3030
// Make sure to always report progress completed when this object is
3131
// destructed so it indicates the progress dialog/activity should go away.
3232
std::lock_guard<std::mutex> guard(m_mutex);
33-
if (!m_completed) {
33+
if (!m_completed)
3434
m_completed = m_total;
35-
ReportProgress();
36-
}
35+
ReportProgress();
3736
}
3837

3938
void Progress::Increment(uint64_t amount, std::string update) {

0 commit comments

Comments
 (0)