retry function is called when it is alreday not connected.
So, this remove re-checking connected value, for readability and clear logic
Change-Id: Ifb7ac64d23cdf66d5f4cacf547b7ebf28a6783fd
{
LOGI("Retry connection");
- if (mmi_ipc_is_connected() == false) {
- LOGE("Not Connected.");
- int ret = rpc_port_proxy_mmi_connect_sync(h);
- if (ret != RPC_PORT_ERROR_NONE) {
- LOGE("Fail to retry connection(%d)", ret);
- return MMI_ERROR_OPERATION_FAILED;
- }
+ int ret = rpc_port_proxy_mmi_connect_sync(h);
+ if (ret != RPC_PORT_ERROR_NONE) {
+ LOGE("Fail to retry connection(%d)", ret);
+ return MMI_ERROR_OPERATION_FAILED;
}
return MMI_ERROR_NONE;