Commit 656753b7 authored by Beniamino Galvani's avatar Beniamino Galvani

manager: clear unmanaged-sleeping flag on software devices on resume

When networking is disabled at NM startup we unmanage all devices
(including software ones) due to SLEEPING. After networking gets
enabled again we must clear the unmanaged-sleeping flag on software
parent 2d347e7e
...@@ -5923,10 +5923,10 @@ do_sleep_wake (NMManager *self, gboolean sleeping_changed) ...@@ -5923,10 +5923,10 @@ do_sleep_wake (NMManager *self, gboolean sleeping_changed)
c_list_for_each_entry (device, &priv->devices_lst_head, devices_lst) { c_list_for_each_entry (device, &priv->devices_lst_head, devices_lst) {
guint i; guint i;
if (nm_device_is_software (device)) { if ( nm_device_is_software (device)
/* We do not manage/unmanage software devices but && !nm_device_get_unmanaged_flags (device, NM_UNMANAGED_SLEEPING)) {
* their dhcp leases could have gone stale so we need /* DHCP leases of software devices could have gone stale
* to renew them */ * so we need to renew them. */
nm_device_update_dynamic_ip_setup (device); nm_device_update_dynamic_ip_setup (device);
continue; continue;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment