mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-17 13:22:03 +01:00
Merge 0f4e20728d231935f0140845370090a760ae93af into 5f4422d68dc3530c353af1f87499de1c864b60ad
This commit is contained in:
commit
750d057057
@ -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),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user