summaryrefslogtreecommitdiff
path: root/gdbus
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2012-12-18 04:27:09 (GMT)
committerMarcel Holtmann <marcel@holtmann.org>2012-12-19 02:49:11 (GMT)
commit086cc0efc72c1d5019c4cffbb24c81c2a9c19bfa (patch)
tree01ab37f387562855bf022c408e02d94c3d873a65 /gdbus
parent95ffb025769ef1d9f1e8df39870b412b9aac68fe (diff)
downloadconnman-086cc0efc72c1d5019c4cffbb24c81c2a9c19bfa.zip
connman-086cc0efc72c1d5019c4cffbb24c81c2a9c19bfa.tar.gz
connman-086cc0efc72c1d5019c4cffbb24c81c2a9c19bfa.tar.bz2
gdbus: Increase the method call timeout to 5 minutes
Diffstat (limited to 'gdbus')
-rw-r--r--gdbus/client.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdbus/client.c b/gdbus/client.c
index d7d9e36..4709cdd 100644
--- a/gdbus/client.c
+++ b/gdbus/client.c
@@ -30,6 +30,8 @@
#include "gdbus.h"
+#define METHOD_CALL_TIMEOUT (300 * 1000)
+
struct GDBusClient {
gint ref_count;
DBusConnection *dbus_conn;
@@ -498,7 +500,7 @@ gboolean g_dbus_proxy_method_call(GDBusProxy *proxy, const char *method,
}
if (dbus_connection_send_with_reply(client->dbus_conn, msg,
- &call, -1) == FALSE) {
+ &call, METHOD_CALL_TIMEOUT) == FALSE) {
dbus_message_unref(msg);
g_free(data);
return FALSE;