From 8f8b43880fb0ab507419f7aba6fd37f4dc170b3f Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Thu, 24 Nov 2016 14:10:34 +0100 Subject: [PATCH] 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) --- libnm/nm-vpn-service-plugin.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libnm/nm-vpn-service-plugin.c b/libnm/nm-vpn-service-plugin.c index 6431629669..8272943da4 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: