Corrected bug in TC, where delta sessions where being persisted upon failure during the commit operation
This commit is contained in:
@@ -957,8 +957,9 @@ namespace TargetController
|
||||
|
||||
void TargetControllerComponent::disableProgrammingMode() {
|
||||
if (this->deltaProgrammingSession.has_value()) {
|
||||
this->commitDeltaProgrammingSession(*(this->deltaProgrammingSession));
|
||||
const auto session = std::move(*(this->deltaProgrammingSession));
|
||||
this->deltaProgrammingSession = std::nullopt;
|
||||
this->commitDeltaProgrammingSession(session);
|
||||
}
|
||||
|
||||
Logger::debug("Disabling programming mode");
|
||||
|
||||
Reference in New Issue
Block a user