Index: tools/android/forwarder2/device_forwarder_main.cc |
diff --git a/tools/android/forwarder2/device_forwarder_main.cc b/tools/android/forwarder2/device_forwarder_main.cc |
index c6fae82a5bc964e1b07c74bd8d286687ab8a360f..5d674cf44f50ad95cad6e1d424481d95edc23115 100644 |
--- a/tools/android/forwarder2/device_forwarder_main.cc |
+++ b/tools/android/forwarder2/device_forwarder_main.cc |
@@ -62,7 +62,7 @@ class ServerDelegate : public Daemon::ServerDelegate { |
char buf[kBufSize]; |
const int bytes_read = client_socket->Read(buf, sizeof(buf)); |
if (bytes_read <= 0) { |
- if (client_socket->exited()) |
+ if (client_socket->DidReceiveEvent()) |
return; |
PError("Read()"); |
return; |