X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fhs-proxy.cpp;h=7571dad52c56a9611d8d5af7dafa8adc0c36d1e2;hb=8477be85731ea61bf2f4e47948c649a0bbb109d8;hp=33cfce3bf0bf964639321f408de0bf5486088150;hpb=f19cfe46d7172b512f06f5acf657b8d56e69a0b3;p=apps%2Fagl-service-homescreen.git diff --git a/src/hs-proxy.cpp b/src/hs-proxy.cpp index 33cfce3..7571dad 100644 --- a/src/hs-proxy.cpp +++ b/src/hs-proxy.cpp @@ -56,7 +56,6 @@ static void api_callback(void *closure, struct json_object *object, const char * /* if we have an error then we couldn't start the application so we remove it */ if (error) { - clientManager->removeClientCtxt(cdata->clientCtx); clientManager->removeClient(cdata->appid); } @@ -179,12 +178,6 @@ void HS_AfmMainProxy::start(struct hs_instance *instance, afb_req_t request, con return; } - cdata->clientCtx = clientManager->createClientCtxt(request, id); - HS_Client *client = clientManager->addClient(request, id); - if (client) { - if (client->handleRequest(request, "subscribe")) - AFB_WARNING("Failed to handle subcribe\n"); - } - + clientManager->addClient(request, id); api_call(request->api, _afm_main, __FUNCTION__, json_object_new_string(id.c_str()), cdata); }