summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2016-11-24 14:10:34 +0100
committerLubomir Rintel <lkundrak@v3.sk>2016-11-24 14:18:47 +0100
commit8f8b43880fb0ab507419f7aba6fd37f4dc170b3f (patch)
tree650d474387bf5399930df23d1fa624240b1c6ca8
parent8ab9634fdbcd1e21d4c37c72172aa29dfe2bff52 (diff)
libnm/vpn-service-plugin: transition to STOPPED state from INIT too
We may want to stop the plugin before we started connecting e.g. when the plugin NeedsSecrets but we can't supply them. (cherry picked from commit 743d372d72878219a229ee420e477958939aa1fb)
-rw-r--r--libnm/nm-vpn-service-plugin.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libnm/nm-vpn-service-plugin.c b/libnm/nm-vpn-service-plugin.c
index 643162966..8272943da 100644
--- a/libnm/nm-vpn-service-plugin.c
+++ b/libnm/nm-vpn-service-plugin.c
@@ -225,6 +225,7 @@ nm_vpn_service_plugin_disconnect (NMVpnServicePlugin *plugin, GError **err)
break;
case NM_VPN_SERVICE_STATE_INIT:
ret = TRUE;
+ nm_vpn_service_plugin_set_state (plugin, NM_VPN_SERVICE_STATE_STOPPED);
break;
default: