summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libs/androidfw/InputTransport.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/androidfw/InputTransport.cpp b/libs/androidfw/InputTransport.cpp
index 498389e..cfbc923 100644
--- a/libs/androidfw/InputTransport.cpp
+++ b/libs/androidfw/InputTransport.cpp
@@ -159,7 +159,7 @@ status_t InputChannel::sendMessage(const InputMessage* msg) {
if (error == EAGAIN || error == EWOULDBLOCK) {
return WOULD_BLOCK;
}
- if (error == EPIPE || error == ENOTCONN) {
+ if (error == EPIPE || error == ENOTCONN || error == ECONNREFUSED || error == ECONNRESET) {
return DEAD_OBJECT;
}
return -error;
@@ -193,7 +193,7 @@ status_t InputChannel::receiveMessage(InputMessage* msg) {
if (error == EAGAIN || error == EWOULDBLOCK) {
return WOULD_BLOCK;
}
- if (error == EPIPE || error == ENOTCONN) {
+ if (error == EPIPE || error == ENOTCONN || error == ECONNREFUSED) {
return DEAD_OBJECT;
}
return -error;