[network-manager-fortisslvpn] service: drop off the bus if the peer vanishes or we're unneeded



commit 3b1f400301f8d9ff57f4ec418c0e1ce8807d856c
Author: Lubomir Rintel <lkundrak v3 sk>
Date:   Wed Jan 27 18:37:14 2016 +0100

    service: drop off the bus if the peer vanishes or we're unneeded

 src/nm-fortisslvpn-service.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/nm-fortisslvpn-service.c b/src/nm-fortisslvpn-service.c
index 798ff95..bbc3337 100644
--- a/src/nm-fortisslvpn-service.c
+++ b/src/nm-fortisslvpn-service.c
@@ -682,6 +682,7 @@ nm_fortisslvpn_plugin_new (const char *bus_name)
 
        plugin = (NMFortisslvpnPlugin *) g_initable_new (NM_TYPE_FORTISSLVPN_PLUGIN, NULL, &error,
                                                         NM_VPN_SERVICE_PLUGIN_DBUS_SERVICE_NAME, bus_name,
+                                                        NM_VPN_SERVICE_PLUGIN_DBUS_WATCH_PEER, !debug,
                                                         NULL);
        if (plugin) {
                g_signal_connect (G_OBJECT (plugin), "state-changed", G_CALLBACK (state_changed_cb), NULL);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]