summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Erik Kline <ek@google.com> 2015-10-01 20:38:03 +0900
committer Erik Kline <ek@google.com> 2015-10-01 20:38:03 +0900
commit1c01e61c90d74a8acace18466d5aa6538440cd15 (patch)
treee91cc6e3f0111bbca4dfe9530188f19a3227801d
parentf8f9c10247b32c0075f0e0e30c1f38d7a61a030d (diff)
Only log exceptions if the IpReachabilityMonitor is still running.
It's not terribly interesting to see logged exceptions about reads on sockets that were deliberately closed due to normal tear down. Change-Id: Ib6834a98b6f086fc40ce19db60c161414459d758
-rw-r--r--services/net/java/android/net/ip/IpReachabilityMonitor.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/net/java/android/net/ip/IpReachabilityMonitor.java b/services/net/java/android/net/ip/IpReachabilityMonitor.java
index 982bae0ccb42..53f55cdc847f 100644
--- a/services/net/java/android/net/ip/IpReachabilityMonitor.java
+++ b/services/net/java/android/net/ip/IpReachabilityMonitor.java
@@ -423,7 +423,7 @@ public class IpReachabilityMonitor {
try {
byteBuffer = recvKernelReply();
} catch (ErrnoException e) {
- Log.w(TAG, "ErrnoException: ", e);
+ if (stillRunning()) { Log.w(TAG, "ErrnoException: ", e); }
break;
}
final long whenMs = SystemClock.elapsedRealtime();