start launcher and lastmode after homescreen started
[apps/agl-service-homescreen.git] / src / hs-clientmanager.cpp
index 832c64f..86e1f28 100644 (file)
@@ -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;
     }