From 7a69715bf1e849b8d95c85755037502488020a26 Mon Sep 17 00:00:00 2001 From: Hwankyu Jhun Date: Wed, 19 Jul 2017 09:31:59 +0900 Subject: [PATCH] Set the timeout about sending dbus message The timeout interval is 5 seconds. Change-Id: Idab178dcbcbb7c28217bdc98af59069623683ccf Signed-off-by: Hwankyu Jhun --- src/aul_window.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/aul_window.c b/src/aul_window.c index 068d3d0..8cfff69 100644 --- a/src/aul_window.c +++ b/src/aul_window.c @@ -85,7 +85,7 @@ API int aul_window_stack_get(aul_window_stack_h *handle) } reply = g_dbus_connection_send_message_with_reply_sync(system_conn, msg, - G_DBUS_SEND_MESSAGE_FLAGS_NONE, -1, NULL, NULL, &err); + G_DBUS_SEND_MESSAGE_FLAGS_NONE, 5000, NULL, NULL, &err); if (!reply) { if (err != NULL) { @@ -304,7 +304,7 @@ API int aul_window_get_focused_pid(pid_t *pid) } reply = g_dbus_connection_send_message_with_reply_sync(system_conn, msg, - G_DBUS_SEND_MESSAGE_FLAGS_NONE, -1, NULL, NULL, &err); + G_DBUS_SEND_MESSAGE_FLAGS_NONE, 5000, NULL, NULL, &err); if (!reply) { if (err != NULL) { -- 2.7.4