Improve doc on Torrent.Drop
https://github.com/anacrolix/torrent/issues/73
This commit is contained in:
parent
2dcbe31304
commit
dcec4f3dce
4
t.go
4
t.go
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user