mirror of
https://gitee.com/openharmony/communication_dsoftbus
synced 2025-02-20 03:02:56 +00:00
update sdk/frame/standard/src/softbus_server_proxy_frame.cpp.
Signed-off-by: 郭琦11 <guoqi53@huawei.com>
This commit is contained in:
parent
5e54a34ed7
commit
c00da202b5
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user