From: Matt Joiner Date: Sat, 13 Sep 2014 17:58:13 +0000 (+1000) Subject: Missed this dataRead call in an earlier commit X-Git-Tag: v1.0.0~1560 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=bea5c1a502644c827401fa4ae4d65c79e7545043;p=btrtrc.git Missed this dataRead call in an earlier commit --- diff --git a/client.go b/client.go index b8fbdb80..66667e2b 100644 --- a/client.go +++ b/client.go @@ -1460,12 +1460,9 @@ func (me *Client) pieceHashed(t *torrent, piece pp.Integer, correct bool) { if correct { p.PendingChunkSpecs = nil me.downloadStrategy.TorrentGotPiece(t, int(piece)) - me.dataReady(dataSpec{ - t.InfoHash, - request{ - pp.Integer(piece), - chunkSpec{0, pp.Integer(t.PieceLength(piece))}, - }, + me.dataReady(t, request{ + pp.Integer(piece), + chunkSpec{0, pp.Integer(t.PieceLength(piece))}, }) } else { if len(p.PendingChunkSpecs) == 0 {