Skip to content

Commit

Permalink
Startup all plugins even if ctrl-c called
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Jan 28, 2025
1 parent bbd74cc commit 5b61671
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion application_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@ std::shared_ptr<boost::asio::signal_set> application_base::setup_signal_handling
void application_base::startup(boost::asio::io_context& io_ctx) {
try {
for( auto plugin : initialized_plugins ) {
if( is_quiting() ) break;
// do not check is_quiting(), call startup() on all initialized plugins unless an exception is thrown
// Note: plugins can check is_quiting() and exit early if desired
plugin->startup();
}

Expand Down

0 comments on commit 5b61671

Please sign in to comment.