Move the execution order of cpu inheritance forward 05/310305/2
authorIlho Kim <ilho159.kim@samsung.com>
Thu, 25 Apr 2024 06:19:13 +0000 (15:19 +0900)
committerIlho Kim <ilho159.kim@samsung.com>
Thu, 25 Apr 2024 06:20:25 +0000 (15:20 +0900)
Change-Id: Ide4ec31a01f10dce83a3d039aec646798948930a
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
src/client/pkginfo_client.cc

index d2ca8d5..d82810e 100644 (file)
@@ -87,6 +87,8 @@ bool PkgInfoClient::SendRequest() {
     return RequestHandlerDirectAccess(&p);
   }
 
+  cpu_inheritance_invoker_.SetCPUInheritance();
+
   if (!check_server.IsReady() && !check_server.Check()) {
     LOG(WARNING) << "Server is not ready, try to direct access"
         ", Request type: " << pkgmgr_common::ReqTypeToString(req_type_);
@@ -97,7 +99,6 @@ bool PkgInfoClient::SendRequest() {
   LOG(WARNING) << "Try to send request, Request type: "
       << pkgmgr_common::ReqTypeToString(req_type_);
 
-  cpu_inheritance_invoker_.SetCPUInheritance();
   if (!socket_->Connect(req_type_)) {
     LOG(ERROR) << "Failed to connect client socket, try to direct access"
         ", Request type: " << pkgmgr_common::ReqTypeToString(req_type_);