Browse Source

Do not access moved-from object in CleanRepository::run()

move-only-function
Martchus 1 year ago
parent
commit
ac7f38e8fa
  1. 3
      librepomgr/buildactions/repomanagement.cpp

3
librepomgr/buildactions/repomanagement.cpp

@ -821,9 +821,10 @@ void CleanRepository::run()
}
repoDirs.clear();
const auto res = m_messages.errors.empty() ? BuildActionResult::Success : BuildActionResult::Failure;
const auto buildLock = m_setup.building.lockToWrite();
m_buildAction->resultData = std::move(m_messages);
reportResult(m_messages.errors.empty() ? BuildActionResult::Success : BuildActionResult::Failure);
reportResult(res);
}
} // namespace LibRepoMgr

Loading…
Cancel
Save