Skip to content

Commit

Permalink
At the beginning load plugins chain_plugin, p2p_plugin, p2p_plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Mariusz-Trela authored and vogel76 committed Sep 25, 2024
1 parent e1e9c61 commit fd4200f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions libraries/appbase/application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,10 @@ initialization_result application::initialize_impl( int argc, char** argv,
return { initialization_result::ok, false };
}

for (const auto& plugin : autostart_plugins)
if (plugin != nullptr && plugin->get_state() == abstract_plugin::registered)
plugin->initialize(my->_args);

if(my->_args.count("plugin") > 0)
{
auto plugins = my->_args.at("plugin").as<std::vector<std::string>>();
Expand All @@ -300,9 +304,6 @@ initialization_result application::initialize_impl( int argc, char** argv,
get_plugin(name).initialize(my->_args);
}
}
for (const auto& plugin : autostart_plugins)
if (plugin != nullptr && plugin->get_state() == abstract_plugin::registered)
plugin->initialize(my->_args);

bpo::notify(my->_args);

Expand Down

0 comments on commit fd4200f

Please sign in to comment.