From 415b7ded070c3887a0b98d7fc4fde46abdff38e7 Mon Sep 17 00:00:00 2001 From: "Zhangyao(Maggie)" Date: Wed, 20 Nov 2024 10:37:09 +0800 Subject: [PATCH] fix Signed-off-by: Zhangyao(Maggie) --- services/backup_sa/src/module_ipc/service.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/services/backup_sa/src/module_ipc/service.cpp b/services/backup_sa/src/module_ipc/service.cpp index 23bc9a3c7..ca6d42e95 100644 --- a/services/backup_sa/src/module_ipc/service.cpp +++ b/services/backup_sa/src/module_ipc/service.cpp @@ -1030,6 +1030,12 @@ ErrCode Service::GetFileHandle(const string &bundleName, const string &fileName) void Service::OnBackupExtensionDied(const string &&bundleName, bool isSecondCalled) { HITRACE_METER_NAME(HITRACE_TAG_FILEMANAGEMENT, __PRETTY_FUNCTION__); + if (isSecondCalled) { + HILOGE("Backup <%{public}s> Extension Process second Died", bundleName.c_str()); + ClearSessionAndSchedInfo(bundleName); + OnAllBundlesFinished(BError(BError::Codes::OK)); + return; + } try { string callName = move(bundleName); HILOGE("Backup <%{public}s> Extension Process Died", callName.c_str()); -- Gitee