Diff between 84faeb47be70227f32d1c8276bac60f1899d34b7 and 875c8924af7aee7cece4d69971ffbf87e552fd00
Changed Files
| File | Additions | Deletions | Status |
| gdbus/client.c | +3 | -1 | modified |
Full Patch
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;