To call the OnDisconnectedEvent callback function, checking the type of
the socket is removed.
Change-Id: I2c08a08068960cc5217128ed738c8ccec6785b8c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
LOGW("Socket was disconnected. fd(%d)", fd);
for (auto& p : stub->ports_) {
if (p->GetFd() == fd) {
- if (!p->IsDelegate()) {
- stub->listener_->OnDisconnected(p->GetId(), p->GetInstance());
- if (aul_rpc_port_notify_rpc_finished() != AUL_R_OK)
- LOGW("Failed to notify rpc finished");
- }
+ stub->listener_->OnDisconnected(p->GetId(), p->GetInstance());
+ if (aul_rpc_port_notify_rpc_finished() != AUL_R_OK)
+ LOGW("Failed to notify rpc finished");
stub->RemoveAcceptedPorts(p->GetInstance());
break;
}