From 1c01e61c90d74a8acace18466d5aa6538440cd15 Mon Sep 17 00:00:00 2001 From: Erik Kline Date: Thu, 1 Oct 2015 20:38:03 +0900 Subject: 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 --- services/net/java/android/net/ip/IpReachabilityMonitor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- cgit v1.2.3-59-g8ed1b