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() ) ); } }