[NetworkManager-libreswan/nm-1-0: 20/51] service: update the plugin state on failures
- From: Thomas Haller <thaller src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [NetworkManager-libreswan/nm-1-0: 20/51] service: update the plugin state on failures
- Date: Thu, 4 Oct 2018 14:07:21 +0000 (UTC)
commit 049ee629ca8e71233bb47f29e93ff53a47a2af24
Author: Lubomir Rintel <lkundrak v3 sk>
Date: Mon Aug 17 19:09:04 2015 +0200
service: update the plugin state on failures
Otherwise the daemon does not notice we failed and times out.
(cherry picked from commit 0cc023995ea3241ba1f36db4d876e9eb29cfb8d2)
src/nm-openswan-service.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/src/nm-openswan-service.c b/src/nm-openswan-service.c
index 3a3617b..64388c2 100644
--- a/src/nm-openswan-service.c
+++ b/src/nm-openswan-service.c
@@ -442,6 +442,7 @@ connect_failed (NMOpenSwanPlugin *self,
if (do_stop)
ipsec_stop (self, NULL);
nm_vpn_plugin_failure (NM_VPN_PLUGIN (self), reason);
+ nm_vpn_service_plugin_set_state (NM_VPN_SERVICE_PLUGIN (self), NM_VPN_SERVICE_STATE_STOPPED);
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]