Merge 0f4e20728d231935f0140845370090a760ae93af into 5f4422d68dc3530c353af1f87499de1c864b60ad

This commit is contained in:
hodlinator 2025-03-17 09:50:15 +07:00 committed by GitHub
commit 750d057057
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1932,7 +1932,7 @@ void CConnman::DisconnectNodes()
// Add to reconnection list if appropriate. We don't reconnect right here, because // Add to reconnection list if appropriate. We don't reconnect right here, because
// the creation of a connection is a blocking operation (up to several seconds), // the creation of a connection is a blocking operation (up to several seconds),
// and we don't want to hold up the socket handler thread for that long. // and we don't want to hold up the socket handler thread for that long.
if (pnode->m_transport->ShouldReconnectV1()) { if (fNetworkActive && pnode->m_transport->ShouldReconnectV1()) {
reconnections_to_add.push_back({ reconnections_to_add.push_back({
.addr_connect = pnode->addr, .addr_connect = pnode->addr,
.grant = std::move(pnode->grantOutbound), .grant = std::move(pnode->grantOutbound),