func (t *Torrent) addrActive(addr string) bool {
	if _, ok := t.halfOpen[addr]; ok {
		return true
	}
	for c := range t.conns {
		ra := c.remoteAddr
		if ra.String() == addr {
			return true
		}
	}
	return false
}
// There's a connection to that address already.
There's a connection to that address already.
// There ' s a connection to that address already .
func (t *Torrent) addrActive(addr string) bool {
	if _, ok := t.halfOpen[addr]; ok {
		return true
	}
	for c := range t.conns {
		ra := c.remoteAddr
		if ra.String() == addr {
			return true
		}
	}
	return false
}
func ( t * Torrent ) addrActive ( addr string ) bool { if _ , ok := t . halfOpen [ addr ] ; ok { return true } for c := range t . conns { ra := c . remoteAddr if ra . String ( ) == addr { return true } } return false }
There's a connection to that address already.
There ' s a connection to that address already .