!1346 修复搜网无返回时CallBack超时返回_master

Merge pull request !1346 from Aurora/master
This commit is contained in:
openharmony_ci 2023-07-31 11:57:59 +00:00 committed by Gitee
commit 3aa1a82d8a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -26,6 +26,7 @@
#include "network_search_types.h"
#include "radio_event.h"
#include "securec.h"
#include "telephony_errors.h"
#include "telephony_log_wrapper.h"
namespace OHOS {
@ -338,7 +339,10 @@ bool EventSender::Send(
TELEPHONY_LOGE("EventSender::Send telRilManager_.get() is null.");
return false;
}
(telRilManager_.get()->*rilFuncPointer)(slotId, args..., event);
if ((telRilManager_.get()->*rilFuncPointer)(slotId, args..., event) != TELEPHONY_ERR_SUCCESS) {
TELEPHONY_LOGE("EventSender::Send process ril function error.");
return false;
}
return true;
}
} // namespace Telephony