mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-16 01:50:29 +01:00
device: restart DHCP only for devices that are active or activating
do_sleep_wake() tries to restart DHCP for all devices, even ones that are disconnecting. When a device is disconnecting, it still has a DHCP client instance but we shouldn't restart it because it makes no sense; and especially, the device could be already removed. https://bugzilla.redhat.com/show_bug.cgi?id=1852612 https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/561 (cherry picked from commit2c50438987) (cherry picked from commit5321490180) (cherry picked from commitef755588ad) (cherry picked from commitda54b35af3)
This commit is contained in:
parent
692689ead8
commit
b0be1285cc
1 changed files with 4 additions and 0 deletions
|
|
@ -3460,6 +3460,10 @@ nm_device_update_dynamic_ip_setup (NMDevice *self)
|
|||
|
||||
priv = NM_DEVICE_GET_PRIVATE (self);
|
||||
|
||||
if ( priv->state < NM_DEVICE_STATE_IP_CONFIG
|
||||
|| priv->state > NM_DEVICE_STATE_ACTIVATED)
|
||||
return;
|
||||
|
||||
g_hash_table_remove_all (priv->ip6_saved_properties);
|
||||
|
||||
if (priv->dhcp4.client) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue