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

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: