mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-30 16:28:15 +02: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 commit 2c50438987)
This commit is contained in:
parent
838777a891
commit
5321490180
1 changed files with 4 additions and 0 deletions
|
|
@ -3822,6 +3822,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->dhcp_data_4.client) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue