Skip to content

Commit

Permalink
GH-1072 Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed May 22, 2023
1 parent 30d6fd5 commit a80f5bc
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions plugins/net_plugin/net_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4147,7 +4147,7 @@ namespace eosio {

// called from any thread
void connections_manager::start_conn_timer() {
start_conn_timer(connector_period, {});
start_conn_timer(connector_period, {}); // this locks mutex
}

// called from any thread
Expand Down Expand Up @@ -4197,18 +4197,20 @@ namespace eosio {
++num_peers;
}

if( !(*it)->socket_is_open() && !(*it)->connecting) {
if( !(*it)->incoming() ) {
if( !(*it)->resolve_and_connect() ) {
if (!(*it)->socket_is_open() && !(*it)->connecting) {
if (!(*it)->incoming()) {
if (!(*it)->resolve_and_connect()) {
it = connections.erase(it);
--num_peers;
++num_rm;
continue;
}
} else {
--num_clients;
++num_rm;
it = connections.erase(it);
--num_peers; ++num_rm;
continue;
}
} else {
--num_clients; ++num_rm;
it = connections.erase(it);
continue;
}
}
++it;
}
Expand Down

0 comments on commit a80f5bc

Please sign in to comment.