From 090ee43276636f8b20d5b6cf089b81da531a07ae Mon Sep 17 00:00:00 2001 From: Wannabe Date: Sat, 5 Jul 2025 14:57:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=91=8A=E8=AD=A6=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Wannabe --- .../native/remote_file_share/src/remote_file_share.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/interfaces/innerkits/native/remote_file_share/src/remote_file_share.cpp b/interfaces/innerkits/native/remote_file_share/src/remote_file_share.cpp index 9cd4c0d28..65483cc16 100644 --- a/interfaces/innerkits/native/remote_file_share/src/remote_file_share.cpp +++ b/interfaces/innerkits/native/remote_file_share/src/remote_file_share.cpp @@ -670,7 +670,8 @@ static sptr GetStorageManager() int32_t count = 0; sptr storageManager = nullptr; - while (storageManager == nullptr && count++ < GET_CLIENT_RETRY_TIMES) { + while (storageManager == nullptr && count < GET_CLIENT_RETRY_TIMES) { + count++; auto storageObj = saMgr->GetSystemAbility(STORAGE_MANAGER_MANAGER_ID); if (storageObj == nullptr) { LOGE("Get starage manger failed."); -- Gitee