Ignore expected error

This commit is contained in:
Matt Joiner 2017-11-06 14:01:07 +11:00
parent e888e6eb85
commit 82093937d5
1 changed files with 2 additions and 0 deletions

View File

@ -1152,6 +1152,8 @@ func (cl *Client) sendChunk(t *Torrent, c *connection, r request, msg func(pp.Me
panic("expected error") panic("expected error")
} }
return return
} else if err == io.EOF {
err = nil
} }
more = msg(pp.Message{ more = msg(pp.Message{
Type: pp.Piece, Type: pp.Piece,