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
This commit is contained in:
Erik Kline
2015-10-01 20:38:03 +09:00
parent f8f9c10247
commit 1c01e61c90

View File

@@ -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();