p2p: propagate out peers limit to payload handler

This commit is contained in:
moneromooo-monero 2019-06-18 22:27:47 +00:00
parent 6335509727
commit fcbf7b3f74
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

View File

@ -2213,6 +2213,7 @@ namespace nodetool
public_zone->second.m_config.m_net_config.max_out_connection_count = count; public_zone->second.m_config.m_net_config.max_out_connection_count = count;
if(current > count) if(current > count)
public_zone->second.m_net_server.get_config_object().del_out_connections(current - count); public_zone->second.m_net_server.get_config_object().del_out_connections(current - count);
m_payload_handler.set_max_out_peers(count);
} }
} }