2
0
mirror of synced 2025-02-23 14:18:13 +00:00

Improve doc on Torrent.Drop

https://github.com/anacrolix/torrent/issues/73
This commit is contained in:
Matt Joiner 2016-04-18 21:52:30 +10:00
parent 2dcbe31304
commit dcec4f3dce

4
t.go
View File

@ -56,7 +56,9 @@ func (t *Torrent) NumPieces() int {
return t.numPieces()
}
// Drop the torrent from the client, and close it.
// Drop the torrent from the client, and close it. It's always safe to do
// this. No data corruption can, or should occur to either the torrent's data,
// or connected peers.
func (t *Torrent) Drop() {
t.cl.mu.Lock()
t.cl.dropTorrent(t.infoHash)