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

This commit is contained in:
Lubomir Rintel
2014-11-09 14:09:40 +01:00
parent 282d9b0e10
commit 75f767ca23

View File

@@ -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;
if (!NM_IS_VPN_CONNECTION (candidate)) {
device = devices->pdata[0]; device = devices->pdata[0];
if (nm_device_get_active_connection (device) != candidate) if (nm_device_get_active_connection (device) != candidate)
continue; continue;
}
activate_info_complete (info, candidate, NULL); activate_info_complete (info, candidate, NULL);
break; break;