[NOD-772] Fix a bug where we ignore the return value of forAllOutboundPeers. (#636)

This commit is contained in:
Dan Aharoni 2020-02-18 18:02:15 +02:00 committed by GitHub
parent a4bb070722
commit 550b12b041
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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