Skip to content

Commit

Permalink
Merge pull request #609 from bennibbelink/reactor-decommission
Browse files Browse the repository at this point in the history
`SchedDecom()` instead of `Decommission` in `Reactor::Tick()`
  • Loading branch information
gonuke authored May 30, 2024
2 parents 2cf5550 + 5386eb5 commit cf4ed02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ Since last release

**Fixed:**

* Schedule Decommission in ``Reactor::Tick()`` instead of Decommission (#609)

**Removed:**

* Removed references to deprecated ``ResourceBuff`` class (#604)
Expand Down
2 changes: 1 addition & 1 deletion src/reactor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ void Reactor::Tick() {
spent.Push(fresh.Pop());
}
if(CheckDecommissionCondition()) {
Decommission();
context()->SchedDecom(this);
}
return;
}
Expand Down

0 comments on commit cf4ed02

Please sign in to comment.