about summary refs log tree commit diff
path: root/libnm-glib/nm-object.c
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2010-11-29 19:00:27 +0100
committerMichael Biebl <biebl@debian.org>2010-11-29 19:00:27 +0100
commit90764db0c249831a00ca5506fc2913a418eb980a (patch)
tree88199b4c694a5977b407670b54e5c160985b1399 /libnm-glib/nm-object.c
parent262012122f6fdb67f1645c009beb5f8c477e5868 (diff)
parenta6b89d35fabd9f5934b84d7cde22e9268f92c3d3 (diff)
Merge commit 'upstream/0.8.2' into experimental
Diffstat (limited to 'libnm-glib/nm-object.c')
-rw-r--r--libnm-glib/nm-object.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/libnm-glib/nm-object.c b/libnm-glib/nm-object.c
index 72ea0500..85cb6b78 100644
--- a/libnm-glib/nm-object.c
+++ b/libnm-glib/nm-object.c
@@ -527,12 +527,17 @@ _nm_object_set_property (NMObject *object,
 	g_return_if_fail (prop_name != NULL);
 	g_return_if_fail (G_IS_VALUE (value));
 
-	dbus_g_proxy_call_no_reply (NM_OBJECT_GET_PRIVATE (object)->properties_proxy,
-								"Set",
-								G_TYPE_STRING, interface,
-								G_TYPE_STRING, prop_name,
-								G_TYPE_VALUE, value,
-								G_TYPE_INVALID);
+	if (!dbus_g_proxy_call_with_timeout (NM_OBJECT_GET_PRIVATE (object)->properties_proxy,
+	                                     "Set", 2000, NULL,
+	                                     G_TYPE_STRING, interface,
+	                                     G_TYPE_STRING, prop_name,
+	                                     G_TYPE_VALUE, value,
+	                                     G_TYPE_INVALID)) {
+
+		/* Ignore errors. dbus_g_proxy_call_with_timeout() is called instead of
+		 * dbus_g_proxy_call_no_reply() to give NM chance to authenticate the caller.
+		 */
+	}
 }
 
 char *