mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-03-30 15:08:33 +00:00
[NOD-772] Fix a bug where we ignore the return value of forAllOutboundPeers. (#636)
This commit is contained in:
parent
a4bb070722
commit
550b12b041
@ -208,8 +208,7 @@ func (ps *peerState) forAllPeers(callback func(sp *Peer) bool) bool {
|
||||
if !shouldContinue {
|
||||
return false
|
||||
}
|
||||
ps.forAllOutboundPeers(callback)
|
||||
return true
|
||||
return ps.forAllOutboundPeers(callback)
|
||||
}
|
||||
|
||||
// Server provides a kaspa server for handling communications to and from
|
||||
|
Loading…
x
Reference in New Issue
Block a user