Skip to content

Commit

Permalink
GH-3 Check for stopped in inner loop
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Apr 16, 2024
1 parent 8bfbe0a commit 117f02d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libraries/chain/include/eosio/chain/vote_processor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ class vote_processor_t {
g.lock();
}
for (auto i = idx.begin(); i != idx.end();) {
if (stopped)
break;
auto& vt = *i;
block_state_ptr bsp = fetch_block_func(vt.id());
if (bsp) {
Expand Down

0 comments on commit 117f02d

Please sign in to comment.