make temporary errors temporary, not permanent

This commit is contained in:
Michael Stapelberg 2018-06-01 22:18:15 +02:00
parent 7f93ea6661
commit c05bd22afe

View File

@ -78,9 +78,7 @@ func (c *Client) ObtainOrRenew() bool {
dhcp.RandRead = c.randRead
c.dhcp = dhcp
})
if c.err != nil {
return false
}
// TODO: renew if c.ack != nil, fall back if renewal fails
ok, ack, err := c.dhcpRequest()
if err != nil {
c.err = err