From 09050ff2c5607f3991e6ec6422ed57ba0dee0bad Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Mon, 4 Jan 2016 22:56:36 +1100 Subject: [PATCH] Some missing hunks that fix build --- client.go | 2 +- connection.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client.go b/client.go index 7ab3a5c4..322c7e70 100644 --- a/client.go +++ b/client.go @@ -1902,7 +1902,7 @@ func (cl *Client) startTorrent(t *torrent) { } go func() { for i := range t.Pieces { - cl.verifyPiece(t, pp.Integer(i)) + cl.verifyPiece(t, i) } }() } diff --git a/connection.go b/connection.go index 8f601d5e..14c24c85 100644 --- a/connection.go +++ b/connection.go @@ -568,7 +568,7 @@ func (cn *connection) Have(piece int) { } func (cn *connection) Bitfield(haves []bool) { - if len(cn.sentHaves) != nil { + if cn.sentHaves != nil { panic("bitfield must be first have-related message sent") } cn.Post(pp.Message{ -- 2.48.1