diff --git a/plugins/net_plugin/net_plugin.cpp b/plugins/net_plugin/net_plugin.cpp index f5d93f64dc..9dc8ccb44f 100644 --- a/plugins/net_plugin/net_plugin.cpp +++ b/plugins/net_plugin/net_plugin.cpp @@ -4688,7 +4688,7 @@ namespace eosio { } strand.post([c, host, port]() { - auto resolver = std::make_shared( my_impl->thread_pool.get_executor() ); + auto resolver = std::make_shared( c->strand.context() ); resolver->async_resolve(host, port, [resolver, c, host, port] ( const boost::system::error_code& err, const tcp::resolver::results_type& results ) {