From: Ilho Kim Date: Thu, 20 Aug 2020 02:38:26 +0000 (+0900) Subject: Fix the behavior that sends start signal twice X-Git-Tag: submit/tizen/20200821.072757~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F11%2F241411%2F1;p=platform%2Fcore%2Fappfw%2Fapp-installers.git Fix the behavior that sends start signal twice Change-Id: I440df908b97bfe5549dc780da8a4b6d81121b88e Signed-off-by: Ilho Kim --- diff --git a/src/common/installer/app_installer.cc b/src/common/installer/app_installer.cc index cf6e88f..43f6b3c 100644 --- a/src/common/installer/app_installer.cc +++ b/src/common/installer/app_installer.cc @@ -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