Skip to content

Commit

Permalink
Move destroy of plugins to after io_context clear.
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Sep 27, 2024
1 parent d15b6f3 commit da11ec0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions include/appbase/application_base.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ class application_base {
}

try {
shutdown(); // may rethrow exceptions
shutdown_plugins(); // may rethrow exceptions
} catch (...) {
if (!eptr)
eptr = std::current_exception();
Expand All @@ -159,7 +159,7 @@ class application_base {

try {
exec.clear(); // make sure the queue is empty
plugins.clear();
destroy_plugins();
} catch (...) {
if (!eptr)
eptr = std::current_exception();
Expand Down Expand Up @@ -302,7 +302,8 @@ class application_base {
}
///@}

void shutdown();
void shutdown_plugins();
void destroy_plugins();

application_base(std::shared_ptr<void>&& e); ///< protected because application is a singleton that should be accessed via instance()

Expand Down

0 comments on commit da11ec0

Please sign in to comment.