diff options
| -rw-r--r-- | services/net/java/android/net/dhcp/DhcpClient.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/services/net/java/android/net/dhcp/DhcpClient.java b/services/net/java/android/net/dhcp/DhcpClient.java index 57cc251649a3..e9203a491f3d 100644 --- a/services/net/java/android/net/dhcp/DhcpClient.java +++ b/services/net/java/android/net/dhcp/DhcpClient.java @@ -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"); |