Fix the behavior that sends start signal twice 11/241411/1
authorIlho Kim <ilho159.kim@samsung.com>
Thu, 20 Aug 2020 02:38:26 +0000 (11:38 +0900)
committerIlho Kim <ilho159.kim@samsung.com>
Thu, 20 Aug 2020 02:38:26 +0000 (11:38 +0900)
Change-Id: I440df908b97bfe5549dc780da8a4b6d81121b88e
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
src/common/installer/app_installer.cc

index cf6e88f..43f6b3c 100644 (file)
@@ -837,8 +837,10 @@ bool AppInstaller::SendStartIfNotSent(bool is_skippable) {
   if (!pi_)
     return false;
 
-  if ((pi_->state() != PkgmgrSignal::State::NOT_SENT ||
-      context_->pkgid.get().empty()) && is_skippable)
+  if (pi_->state() != PkgmgrSignal::State::NOT_SENT)
+    return true;
+
+  if (context_->pkgid.get().empty() && is_skippable)
     return true;
 
   // set request type before sending start signal