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 743d372d72)
This commit is contained in:
Lubomir Rintel 2016-11-24 14:10:34 +01:00
parent 8ab9634fdb
commit 8f8b43880f

View file

@ -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: