diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2012-12-18 05:27:09 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2012-12-19 03:50:43 +0100 |
commit | fcab2080be678756f6a15dd1302c6781ad3eb3f9 (patch) | |
tree | 32642d6a5b6c5926d297f250c5f7ed1d829356fb | |
parent | e7ca33f9083e46405c30db595b309744e0a31edf (diff) | |
download | ofono-fcab2080be678756f6a15dd1302c6781ad3eb3f9.tar.bz2 |
gdbus: Increase the method call timeout to 5 minutes
-rw-r--r-- | gdbus/client.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdbus/client.c b/gdbus/client.c index d7d9e361..4709cdde 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; |