torrent.go | 2 +- diff --git a/torrent.go b/torrent.go index 77371b130826b407cc6807e40d236114fc6e9877..12bc48f559d6d4890bda12f6244c77587b2c8eb2 100644 --- a/torrent.go +++ b/torrent.go @@ -1436,7 +1436,7 @@ } // Returns true if the connection is added. func (t *Torrent) addConnection(c *connection, outgoing bool) bool { - if t.cl.closed.IsSet() { + if t.closed.IsSet() { return false } if !t.wantConns() {