Skip to content

Commit

Permalink
GH-1058 If quitting do not attempt to apply blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Dec 11, 2024
1 parent 8c2c9ed commit 2d9b949
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/producer_plugin/producer_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2176,7 +2176,7 @@ producer_plugin_impl::start_block_result producer_plugin_impl::start_block() {
};

// producers need to be able to start producing on schedule, do not apply blocks as it might take a long time to apply
if (!is_configured_producer()) {
if (!is_configured_producer() && !app().is_quiting()) {
auto r = apply_blocks();
if (r != controller::apply_blocks_result::complete)
return start_block_result::waiting_for_block;
Expand Down

0 comments on commit 2d9b949

Please sign in to comment.