From 383244f1c1576d5c06a8bbaf2e9f7671b6a8da35 Mon Sep 17 00:00:00 2001 From: Kevin Heifner Date: Tue, 14 Dec 2021 09:57:21 -0600 Subject: [PATCH] Add comment and cleanup if --- plugins/net_plugin/net_plugin.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/plugins/net_plugin/net_plugin.cpp b/plugins/net_plugin/net_plugin.cpp index 331ab66c1b1..fbe0ce517bb 100644 --- a/plugins/net_plugin/net_plugin.cpp +++ b/plugins/net_plugin/net_plugin.cpp @@ -1351,8 +1351,7 @@ namespace eosio { void connection::sync_timeout( boost::system::error_code ec ) { if( !ec ) { my_impl->sync_master->sync_reassign_fetch( shared_from_this(), benign_other ); - } else if( ec == boost::asio::error::operation_aborted ) { - } else { + } else if( ec != boost::asio::error::operation_aborted ) { // don't log on operation_aborted, called on destroy fc_elog( logger, "setting timer for sync request got error ${ec}", ("ec", ec.message()) ); } } @@ -1375,8 +1374,7 @@ namespace eosio { void connection::fetch_timeout( boost::system::error_code ec ) { if( !ec ) { my_impl->dispatcher->retry_fetch( shared_from_this() ); - } else if( ec == boost::asio::error::operation_aborted ) { - } else { + } else if( ec != boost::asio::error::operation_aborted ) { // don't log on operation_aborted, called on destroy fc_elog( logger, "setting timer for fetch request got error ${ec}", ("ec", ec.message() ) ); } }