From eef306c09d0eb7779c947e27b598648b6abb4f0a Mon Sep 17 00:00:00 2001 From: Kevin Heifner Date: Wed, 20 Mar 2019 10:41:43 -0500 Subject: [PATCH] Prevent txn_test_gen_plugin from calling back into http_plugin multiple times per request. --- plugins/txn_test_gen_plugin/txn_test_gen_plugin.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/txn_test_gen_plugin/txn_test_gen_plugin.cpp b/plugins/txn_test_gen_plugin/txn_test_gen_plugin.cpp index 414664be32a..60383175387 100755 --- a/plugins/txn_test_gen_plugin/txn_test_gen_plugin.cpp +++ b/plugins/txn_test_gen_plugin/txn_test_gen_plugin.cpp @@ -69,7 +69,10 @@ using io_work_t = boost::asio::executor_work_guard>(0);\ + auto result_handler = [times_called{std::move(times_called)}, cb, body](const fc::exception_ptr& e) mutable {\ + if( ++(*times_called) > 1 ) return;\ if (e) {\ try {\ e->dynamic_rethrow_exception();\