From 3a46004efe5ac338e0fcd169a9a3d437356c4b09 Mon Sep 17 00:00:00 2001 From: Ilho Kim Date: Thu, 25 Apr 2024 15:19:13 +0900 Subject: [PATCH] Move the execution order of cpu inheritance forward Change-Id: Ide4ec31a01f10dce83a3d039aec646798948930a Signed-off-by: Ilho Kim --- src/client/pkginfo_client.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/pkginfo_client.cc b/src/client/pkginfo_client.cc index d2ca8d5..d82810e 100644 --- a/src/client/pkginfo_client.cc +++ b/src/client/pkginfo_client.cc @@ -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_); -- 2.7.4