Ensure maximum clients on bootstrap server (#726)
* Ensure maximum clients on bootstrap server * Fixed formatting
This commit is contained in:
parent
38cc84399a
commit
897c4cc40c
1 changed files with 1 additions and 1 deletions
|
@ -1407,7 +1407,7 @@ void rai::bootstrap_listener::accept_action (boost::system::error_code const & e
|
|||
auto connection (std::make_shared<rai::bootstrap_server> (socket_a, node.shared ()));
|
||||
{
|
||||
std::lock_guard<std::mutex> lock (mutex);
|
||||
if (acceptor.is_open ())
|
||||
if (connections.size () < node.config.bootstrap_connections_max && acceptor.is_open ())
|
||||
{
|
||||
connections[connection.get ()] = connection;
|
||||
connection->receive ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue