mirror of
https://gitee.com/openharmony/security_deviceauth
synced 2025-02-18 11:59:19 +00:00
add 1s delay for service booting
Signed-off-by: huzhonghua <huzhonghua1@huawei.com>
This commit is contained in:
parent
281621bb97
commit
6c1bc7fe14
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user