From 763e387c62d592ebbb3b5d7aa6a276657533294c Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Fri, 23 May 2014 00:37:36 +1000 Subject: [PATCH] TorrentReadAt shouldn't care about verification state --- client.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/client.go b/client.go index 00f65a0a..16c434a2 100644 --- a/client.go +++ b/client.go @@ -132,13 +132,6 @@ func (cl *Client) TorrentReadAt(ih InfoHash, off int64, p []byte) (n int, err er } t.lastReadPiece = int(index) piece := t.Pieces[index] - if !piece.EverHashed { - cl.queuePieceCheck(t, index) - } - if piece.Hashing { - err = ErrDataNotReady - return - } pieceOff := pp.Integer(off % int64(t.PieceLength(0))) high := int(t.PieceLength(index) - pieceOff) if high < len(p) { -- 2.48.1