Skip to content

Commit

Permalink
Merge pull request #212 from TheCoconutChef/revert-to-index-based-not…
Browse files Browse the repository at this point in the history
…ify-loop

revert to index based notify loop
  • Loading branch information
arximboldi authored Sep 20, 2024
2 parents 3f68361 + c54da43 commit 93b5962
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lager/detail/nodes.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,9 @@ class reader_node : public observable_reader_node<T>
bool garbage = false;

this->observers()(last_);
for (auto& wchild : this->children()) {
if (auto child = wchild.lock()) {
const auto& children = this->children();
for (size_t i = 0, size = children.size(); i < size; ++i) {
if (auto child = children[i].lock()) {
child->notify();
} else {
garbage = true;
Expand Down

0 comments on commit 93b5962

Please sign in to comment.