diff --git a/gossip/comm/comm_impl.go b/gossip/comm/comm_impl.go index 194868f6548..9c50ece144f 100644 --- a/gossip/comm/comm_impl.go +++ b/gossip/comm/comm_impl.go @@ -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 }