From dcec4f3dceaac094b241e256e48bc44ed8e439c5 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Mon, 18 Apr 2016 21:52:30 +1000 Subject: [PATCH] Improve doc on Torrent.Drop https://github.com/anacrolix/torrent/issues/73 --- t.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/t.go b/t.go index e207a09a..c6d23f05 100644 --- a/t.go +++ b/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) -- 2.44.0