From 33d53cf9e522236d1490e99f183c4734981804f5 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Thu, 26 Jun 2014 18:08:14 +1000 Subject: [PATCH] Trivial fix for one of the last commits --- client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.go b/client.go index 08e13416..48889843 100644 --- a/client.go +++ b/client.go @@ -463,7 +463,7 @@ func (me *Client) connectionLoop(t *torrent, c *connection) error { err = errors.New("received unexpected bitfield") break } - c.PeerPieces = msg.Bitfield[:len(t.NumPieces())] + c.PeerPieces = msg.Bitfield[:t.NumPieces()] for index, has := range c.PeerPieces { if has { me.peerGotPiece(t, c, index) -- 2.48.1