update sdk/frame/standard/src/softbus_server_proxy_frame.cpp.

Signed-off-by: 郭琦11 <guoqi53@huawei.com>
This commit is contained in:
郭琦11 2024-09-20 01:05:59 +00:00 committed by Gitee
parent 5e54a34ed7
commit c00da202b5
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -243,7 +243,7 @@ int ClientRegisterService(const char *pkgName)
return SOFTBUS_INVALID_PARAM;
}
int sleepCnt = 0;
while (serverProxyFrame->SoftbusRegisterService(pkgName, nullptr) == SOFTBUS_IPC_ERR) {
while (serverProxyFrame->SoftbusRegisterService(pkgName, nullptr) != SOFTBUS_OK) {
SoftBusSleepMs(WAIT_SERVER_READY_INTERVAL);
sleepCnt++;
if (sleepCnt >= SOFTBUS_MAX_RETRY_TIMES) {