device: don't fail immediately on DHCP expiry

If we had a lease and it expired, don't fail immediately. The client
will try to obtain a new lease and it will send a NO_LEASE_TIMEOUT
event once it fails. Only at that time we should fail.
This commit is contained in:
Beniamino Galvani 2021-11-04 17:17:16 +01:00
parent e9bd8b3dac
commit de5e1eb9e5

View file

@ -9965,7 +9965,6 @@ _dev_ipdhcpx_notify(NMDhcpClient *client, const NMDhcpClientNotifyData *notify_d
if (!notify_data->lease_update.l3cd) {
_LOGT_ipdhcp(addr_family, "lease lost");
_dev_ipdhcpx_handle_fail(self, addr_family, "lease lost");
return;
}