Commit 75f767ca authored by Lubomir Rintel's avatar Lubomir Rintel 🥕
Browse files

libnm: Don't expect VPN connections to attach to the device

parent 282d9b0e
...@@ -818,9 +818,12 @@ recheck_pending_activations (NMManager *self) ...@@ -818,9 +818,12 @@ recheck_pending_activations (NMManager *self)
devices = nm_active_connection_get_devices (candidate); devices = nm_active_connection_get_devices (candidate);
if (devices->len == 0) if (devices->len == 0)
continue; continue;
device = devices->pdata[0];
if (nm_device_get_active_connection (device) != candidate) if (!NM_IS_VPN_CONNECTION (candidate)) {
continue; device = devices->pdata[0];
if (nm_device_get_active_connection (device) != candidate)
continue;
}
activate_info_complete (info, candidate, NULL); activate_info_complete (info, candidate, NULL);
break; break;
......
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