add 1s delay for service booting

Signed-off-by: huzhonghua <huzhonghua1@huawei.com>
This commit is contained in:
huzhonghua 2021-07-28 10:00:55 +08:00
parent 281621bb97
commit 6c1bc7fe14

View File

@ -73,6 +73,9 @@ void ServiceInit(void)
IPROXY_END,
};
#ifdef __LINUX__
sleep(1); /* delay 1 second on boot */
#endif
if (!SAMGR_GetInstance()->RegisterService((Service *)&service)) {
LOGE("%s, RegisterService failed", DEV_AUTH_SERVICE_NAME);
return;