func (p *Peer) Closed() bool {
	p.connLock.Lock()
	defer p.connLock.Unlock()
	return p.connCurrent == nil && !p.connBad
}
// Closed is whether the peer is closed.
Closed is whether the peer is closed.
// Closed is whether the peer is closed .
func (p *Peer) Closed() bool {
	p.connLock.Lock()
	defer p.connLock.Unlock()
	return p.connCurrent == nil && !p.connBad
}
func ( p * Peer ) Closed ( ) bool { p . connLock . Lock ( ) defer p . connLock . Unlock ( ) return p . connCurrent == nil && ! p . connBad }
Closed is whether the peer is closed.
Closed is whether the peer is closed .