From 78ec88ad0225c999bbf9020fd1ae896a24ea1a26 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Tue, 21 Jul 2015 22:52:43 +1000 Subject: [PATCH] Don't probe pieces when setting torrent storage It blocks the caller, for potentially quite some time. I've tested without this for some time now. --- client.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/client.go b/client.go index b8112f32..aaa2ee4d 100644 --- a/client.go +++ b/client.go @@ -1882,9 +1882,6 @@ func (cl *Client) setStorage(t *torrent, td data.Data) (err error) { if err != nil { return } - for index := range iter.N(t.numPieces()) { - cl.pieceChanged(t, index) - } cl.startTorrent(t) return } -- 2.48.1