Ignore expected error
This commit is contained in:
parent
e888e6eb85
commit
82093937d5
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue