From: Matt Joiner Date: Thu, 22 May 2014 14:37:36 +0000 (+1000) Subject: TorrentReadAt shouldn't care about verification state X-Git-Tag: v1.0.0~1734 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=763e387c62d592ebbb3b5d7aa6a276657533294c;p=btrtrc.git TorrentReadAt shouldn't care about verification state --- 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) {