mirror of
https://gitee.com/openharmony/ability_ability_runtime
synced 2025-01-02 05:09:34 +00:00
Signed-off-by: m00512953 <mingxihua@huawei.com>
This commit is contained in:
parent
96cae4f8f5
commit
0207ad194e
@ -379,7 +379,8 @@ void AppRunningManager::TerminateAbility(const sptr<IRemoteObject> &token, bool
|
||||
if (isLastAbilityRecord && !appRecord->IsKeepAliveApp()) {
|
||||
HILOG_DEBUG("The ability is the last in the app:%{public}s.", appRecord->GetName().c_str());
|
||||
appRecord->SetTerminating();
|
||||
if (isClearMission) {
|
||||
auto appInfo = appRecord->GetApplicationInfo();
|
||||
if (isClearMission && !appInfo->isLauncherApp) {
|
||||
HILOG_DEBUG("The ability is the last, kill application");
|
||||
auto pid = appRecord->GetPriorityObject()->GetPid();
|
||||
auto result = appMgrServiceInner->KillProcessByPid(pid);
|
||||
|
Loading…
Reference in New Issue
Block a user