Merge branch 'sandbox/zheng_wenlong/als2019_horizontal' of ssh://gerrit.automotivelin... sandbox/zheng_wenlong/als2019_horizontal
authorzheng_wenlong <wenlong_zheng@nexty-ele.com>
Fri, 14 Jun 2019 05:20:22 +0000 (14:20 +0900)
committerzheng_wenlong <wenlong_zheng@nexty-ele.com>
Fri, 14 Jun 2019 05:20:22 +0000 (14:20 +0900)
src/hs-client.cpp

index e8f0f7b..c24f61c 100644 (file)
@@ -15,6 +15,7 @@
  */
 
 #include <cstring>
+#include "unistd.h"
 #include "hs-client.h"
 #include "hs-helper.h"
 
@@ -577,6 +578,7 @@ int HS_Client::pushEvent(const char *event, struct json_object *param)
     if(!checkEvent(event))
         return 0;
 
+    sleep(1);
     AFB_INFO("called, event=%s.",event);
     struct json_object* push_obj = json_object_new_object();
     hs_add_object_to_json_object_str( push_obj, 4, _application_id, my_id.c_str(), _type, event);