IssueNo:修复搜网无返回时CallBack超时返回

Description:修复搜网无返回时CallBack超时返回
Sig:SIG_Telephony
Feature or Bugfix: Feature
Binary Source: No

Signed-off-by: liuxiyao223 <liuxiyao223@huawei.com>
This commit is contained in:
liuxiyao223 2023-07-31 10:38:31 +08:00
parent 339d3ff7d9
commit cfb52f341c

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