int ret = cb_(kb, uid, user_data_);
if (ret < 0) {
_E("Launch() is failed. error(%d)", ret);
- if (channel.get() != nullptr)
+ if (ret == -ECOMM && channel.get() != nullptr)
channel->IncreaseFailureCount();
} else {
if (channel.get() != nullptr)
int ret = client->Send(reinterpret_cast<void*>(&raw[0]), raw.size());
if (ret != 0) {
_E("Send() is failed. error(%d)", ret);
- return ret;
+ return -ECOMM;
}
ret = client->Receive(reinterpret_cast<void*>(&result), sizeof(result));
if (ret != 0) {
_E("Receive() is failed. error(%d)", ret);
- return ret;
+ return -ECOMM;
}
} catch (const Exception& e) {
_E("Exception occurs. error(%s)", e.what());
- return e.GetErrorCode();
+ return -ECOMM;
}
return result;