summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHwankyu Jhun <h.jhun@samsung.com>2017-07-19 09:31:59 +0900
committerHwanKyu Jhun <h.jhun@samsung.com>2017-09-21 11:55:00 +0000
commit9e6cc1db1a066337daec764680c89068eb7179b0 (patch)
tree4bdcb8ac1a626964c8b0aa158b6d30efe86ac1bb
parent7ee4a29943060c415bd1be2e2f16f7c39bdeaee7 (diff)
downloadaul-1-9e6cc1db1a066337daec764680c89068eb7179b0.tar.gz
aul-1-9e6cc1db1a066337daec764680c89068eb7179b0.tar.bz2
aul-1-9e6cc1db1a066337daec764680c89068eb7179b0.zip
Set the timeout about sending dbus message
The timeout interval is 5 seconds. Change-Id: Idab178dcbcbb7c28217bdc98af59069623683ccf Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
-rw-r--r--src/aul_window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/aul_window.c b/src/aul_window.c
index 068d3d0a..8cfff69a 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) {