[network-manager-openswan/lr/reliability: 2/2] service: update the plugin state on failures



commit 0cc023995ea3241ba1f36db4d876e9eb29cfb8d2
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.

 src/nm-openswan-service.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/nm-openswan-service.c b/src/nm-openswan-service.c
index a1c044d..047f6be 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]