Make delay for sending a request to master.
authorSung-jae Park <nicesj.park@samsung.com>
Mon, 19 Nov 2012 14:05:09 +0000 (23:05 +0900)
committerSung-jae Park <nicesj.park@samsung.com>
Mon, 19 Nov 2012 14:13:37 +0000 (23:13 +0900)
Change-Id: If78f95c13c87cbf72f707e9c170f0d8a098bc065

packaging/liblivebox-viewer.spec
src/master_rpc.c

index 826048a..e269053 100644 (file)
@@ -1,6 +1,6 @@
 Name: liblivebox-viewer
 Summary: Library for the development of a livebox viewer
-Version: 0.8.0
+Version: 0.8.1
 Release: 1
 Group: main/app
 License: Samsung Proprietary License
index 75cd38a..7e8a917 100644 (file)
@@ -18,6 +18,7 @@
 #include "util.h"
 
 #define DEFAULT_TTL 10
+#define REQUEST_DELAY 10
 
 struct command {
        int ttl;
@@ -124,7 +125,7 @@ void master_rpc_check_and_fire_consumer(void)
        if (!s_info.cmd_list || s_info.cmd_timer || client_fd() < 0)
                return;
 
-       s_info.cmd_timer = g_timeout_add(1, cmd_consumer, NULL);
+       s_info.cmd_timer = g_timeout_add(REQUEST_DELAY, cmd_consumer, NULL);
        if (!s_info.cmd_timer)
                ErrPrint("Failed to add timer\n");
 }