[PATCH 06/15] modem-manager, gsm: keep the "Connect" DBus call handler around
- From: Aleksander Morgado <aleksander lanedo com>
- To: networkmanager-list gnome org
- Subject: [PATCH 06/15] modem-manager, gsm: keep the "Connect" DBus call handler around
- Date: Wed, 24 Oct 2012 19:27:05 +0200
So that the call gets properly cancelled when deactivating.
---
src/modem-manager/nm-modem-gsm.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/modem-manager/nm-modem-gsm.c b/src/modem-manager/nm-modem-gsm.c
index 340ee98..740e04c 100644
--- a/src/modem-manager/nm-modem-gsm.c
+++ b/src/modem-manager/nm-modem-gsm.c
@@ -226,11 +226,11 @@ do_connect (NMModemGsm *self)
DBusGProxy *proxy;
proxy = nm_modem_generic_get_proxy (NM_MODEM_GENERIC (self), MM_DBUS_INTERFACE_MODEM_SIMPLE);
- dbus_g_proxy_begin_call_with_timeout (proxy,
- "Connect", stage1_prepare_done,
- self, NULL, 120000,
- DBUS_TYPE_G_MAP_OF_VARIANT, priv->connect_properties,
- G_TYPE_INVALID);
+ priv->call = dbus_g_proxy_begin_call_with_timeout (proxy,
+ "Connect", stage1_prepare_done,
+ self, NULL, 120000,
+ DBUS_TYPE_G_MAP_OF_VARIANT, priv->connect_properties,
+ G_TYPE_INVALID);
}
static void stage1_enable_done (DBusGProxy *proxy, DBusGProxyCall *call_id, gpointer user_data);
--
1.7.11.7
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]