Merge "Don't log errors if the receive thread is stopped." into m-wireless-dev

This commit is contained in:
Vinit Deshpande
2015-03-31 21:02:01 +00:00
committed by Android Partner Code Review

View File

@@ -330,8 +330,10 @@ public class DhcpClient extends BaseDhcpStateMachine {
maybeLog("Received packet: " + packet);
sendMessage(CMD_RECEIVED_PACKET, packet);
}
} catch(IOException|ErrnoException e) {
Log.e(TAG, "Read error", e);
} catch (IOException|ErrnoException e) {
if (!stopped) {
Log.e(TAG, "Read error", e);
}
}
}
maybeLog("Stopping receive thread");