Skip to content

Commit

Permalink
Add an on_except so named_thread_pool does not terminate
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Dec 17, 2023
1 parent fd6ac64 commit d874bda
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/trx_generator/trx_provider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ namespace eosio::testing {
}

void provider_connection::init_and_connect() {
_connection_thread_pool.start(1, {});
_connection_thread_pool.start(1,
[&](const fc::exception &e) {
wlog("Exception in connection_thread: ${e}", ("e", e.to_detail_string()));
});
connect();
};

Expand Down

0 comments on commit d874bda

Please sign in to comment.