[NetworkManager-libreswan/nm-1-0: 20/51] service: update the plugin state on failures



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]