diff --git a/plugins/net_plugin/net_plugin.cpp b/plugins/net_plugin/net_plugin.cpp index 4f439c0d1c..24188c5218 100644 --- a/plugins/net_plugin/net_plugin.cpp +++ b/plugins/net_plugin/net_plugin.cpp @@ -4075,7 +4075,7 @@ namespace eosio { cptr = connections.begin(); } else { // was found - advance the start to the next. cend is the old source. - if( ++cptr == connections.end() && cend != connections.end() ) { + if( ++cptr == connections.end() ) { cptr = connections.begin(); } }