Skip to content

Commit

Permalink
Merge "Gossip- Don't log sending to empty slice of peers"
Browse files Browse the repository at this point in the history
  • Loading branch information
christo4ferris authored and Gerrit Code Review committed Feb 24, 2017
2 parents 709d87b + a5365b9 commit 536a3fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gossip/comm/comm_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ func (c *commImpl) createConnection(endpoint string, expectedPKIID common.PKIidT
}

func (c *commImpl) Send(msg *proto.GossipMessage, peers ...*RemotePeer) {
if c.isStopping() {
if c.isStopping() || len(peers) == 0 {
return
}

Expand Down

0 comments on commit 536a3fd

Please sign in to comment.