Currently, calling Read() is failed, the port will be disconnected.
The header of the parcel is added to check the procotol validation.
This patch removes to call Disconnect() method when the Read() is failed.
Change-Id: I070d9e361917a0bee6a0cd2f673f7157306af8cb
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
int ret = port->Read(reinterpret_cast<uint32_t*>(&seq), sizeof(seq));
if (ret < 0) {
_E("IO Error");
- port->Disconnect();
return ret;
}
ret = port->Read(buf, size);
if (ret < 0) {
_E("IO Error");
- port->Disconnect();
return ret;
}