Commit ec542df4 authored by Lubomir Rintel's avatar Lubomir Rintel 🥕
Browse files

manager: don't the already activated devices shouldn't be considered added

The NMSettings shouldn't generate a new default wired connection for
devices that are being deactivated.
parent 1ab89ecf
......@@ -762,6 +762,9 @@ manager_device_state_changed (NMDevice *device,
break;
}
if (old_state >= NM_DEVICE_STATE_ACTIVATED)
return;
if ( new_state == NM_DEVICE_STATE_UNAVAILABLE
|| new_state == NM_DEVICE_STATE_DISCONNECTED)
nm_settings_device_added (priv->settings, device);
......
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