func (t *Torrent) deleteConnection(c *PeerConn) (ret bool) {
	if !c.closed.IsSet() {
		panic("connection is not closed")
		// There are behaviours prevented by the closed state that will fail
		// if the connection has been deleted.
	}
	_, ret = t.conns[c]
	delete(t.conns, c)
	torrent.Add("deleted connections", 1)
	c.deleteAllRequests()
	if len(t.conns) == 0 {
		t.assertNoPendingRequests()
	}
	return
}
// Returns true if connection is removed from torrent.Conns.
Returns true if connection is removed from torrent.Conns.
// Returns true if connection is removed from torrent . Conns .
func (t *Torrent) deleteConnection(c *PeerConn) (ret bool) {
	if !c.closed.IsSet() {
		panic("connection is not closed")
	}
	_, ret = t.conns[c]
	delete(t.conns, c)
	torrent.Add("deleted connections", 1)
	c.deleteAllRequests()
	if len(t.conns) == 0 {
		t.assertNoPendingRequests()
	}
	return
}
func ( t * Torrent ) deleteConnection ( c * PeerConn ) ( ret bool ) { if ! c . closed . IsSet ( ) { panic ( " " ) } _ , ret = t . conns [ c ] delete ( t . conns , c ) torrent . Add ( " " , 1 ) c . deleteAllRequests ( ) if len ( t . conns ) == 0 { t . assertNoPendingRequests ( ) } return }
Returns true if connection is removed from torrent.Conns.
Returns true if connection is removed from torrent . Conns .
// There are behaviours prevented by the closed state that will fail // if the connection has been deleted.