*torrent
}
+func (t Torrent) InfoHash() InfoHash {
+ return t.torrent.InfoHash
+}
+
// Closed when the info (.Info()) for the torrent has become available. Using
// features of Torrent that require the info before it is available will have
// undefined behaviour.
func (t Torrent) Drop() {
t.cl.mu.Lock()
- t.cl.dropTorrent(t.InfoHash)
+ t.cl.dropTorrent(t.torrent.InfoHash)
t.cl.mu.Unlock()
}