Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f5c17221 authored by Lorenzo Colitti's avatar Lorenzo Colitti
Browse files

Don't log errors if the receive thread is stopped.

Change-Id: I75ddc9b68f0a61a9a7a78026ed97a8a7c5109cc3
parent d91f1935
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -331,9 +331,11 @@ public class DhcpClient extends BaseDhcpStateMachine {
                        sendMessage(CMD_RECEIVED_PACKET, packet);
                    }
                } catch (IOException|ErrnoException e) {
                    if (!stopped) {
                        Log.e(TAG, "Read error", e);
                    }
                }
            }
            maybeLog("Stopping receive thread");
        }
    }