Skip to content

Commit

Permalink
daemon: Reset goal after transaction execution
Browse files Browse the repository at this point in the history
Once the transaction is executed, reset the session goal.
  • Loading branch information
m-blaha committed Sep 5, 2024
1 parent d77231b commit a4b11b5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dnf5daemon-server/services/goal/goal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,9 @@ sdbus::MethodReply Goal::do_transaction(sdbus::MethodCall & call) {
// TODO(mblaha): clean up downloaded packages after successful transaction
}

// reset the goal and the transaction
session.reset_goal();

auto reply = call.createReply();
return reply;
}
Expand Down

0 comments on commit a4b11b5

Please sign in to comment.