summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libnm/nm-manager.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/libnm/nm-manager.c b/libnm/nm-manager.c
index fc558620c7..12c9682780 100644
--- a/libnm/nm-manager.c
+++ b/libnm/nm-manager.c
@@ -816,9 +816,12 @@ recheck_pending_activations (NMManager *self)
devices = nm_active_connection_get_devices (candidate);
if (devices->len == 0)
continue;
- device = devices->pdata[0];
- if (nm_device_get_active_connection (device) != candidate)
- continue;
+
+ if (!NM_IS_VPN_CONNECTION (candidate)) {
+ device = devices->pdata[0];
+ if (nm_device_get_active_connection (device) != candidate)
+ continue;
+ }
activate_info_complete (info, candidate, NULL);
break;