diff options
author | wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com> | 2019-05-05 08:56:38 +0800 |
---|---|---|
committer | wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com> | 2019-05-09 16:02:11 +0800 |
commit | fa01549aba442decaf7c6d5b655da2d15d1a32ed (patch) | |
tree | e1ca57568550540743304560cf57dfa55871ed60 /src/hs-clientmanager.cpp | |
parent | 868898485c76ad5b0140e6528ba04c08878ea3ce (diff) |
start launcher and lastmode after homescreen started
Change-Id: I7f6c6d74d5d5c1686dc216bcff3175281b3c1494
Diffstat (limited to 'src/hs-clientmanager.cpp')
-rw-r--r-- | src/hs-clientmanager.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/hs-clientmanager.cpp b/src/hs-clientmanager.cpp index 832c64f..86e1f28 100644 --- a/src/hs-clientmanager.cpp +++ b/src/hs-clientmanager.cpp @@ -199,7 +199,7 @@ int HS_ClientManager::handleRequest(afb_req_t request, const char *verb, const c } } if(isRegisterApp) { - checkRegisterApp(std::string(appid)); + checkRegisterApp(request->api, std::string(appid)); } return ret; } @@ -245,17 +245,17 @@ int HS_ClientManager::pushEvent(const char *event, struct json_object *param, st * check register application * * #### Parameters + * - api : the api * - appid : register application's id * * #### Return * None * */ -void HS_ClientManager::checkRegisterApp(const std::string &appid) +void HS_ClientManager::checkRegisterApp(afb_api_t api, const std::string &appid) { - AFB_INFO("appid=[%s].", appid.c_str()); - if(HS_AppRecover::instance()->registerRecoveredApp(appid)) { - AFB_NOTICE("register recover application."); + if(HS_AppRecover::instance()->registerRecoveredApp(api, appid)) { + AFB_INFO("register recover application."); return; } |