Modify LoaderContext::Activate() method
authorHwankyu Jhun <h.jhun@samsung.com>
Fri, 22 Nov 2024 06:30:59 +0000 (15:30 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Fri, 22 Nov 2024 06:37:00 +0000 (15:37 +0900)
To activate the loader, we should check Timeout flag with the detection
method.

Change-Id: I02659483613537cd9a83604dce200f6ad61e397c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/launchpad-process-pool/loader_context.cc

index de99fa16bf107f8dd7fd56e730c15db9d5c163ab..f9b25a5c65b2321a6be31813e63e8f3dc34adb70 100644 (file)
@@ -498,8 +498,7 @@ void LoaderContext::Activate() {
       !loader_info_->IsAppInstalled())
     return;
 
-  if (CanActivate(LoaderMethod::Timeout))
-    SetTimer();
+  if (CanBeDetected(LoaderMethod::Timeout)) SetTimer();
 }
 
 void LoaderContext::Deactivate() {