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

Commit e022cb08 authored by Lorenzo Colitti's avatar Lorenzo Colitti Committed by Android (Google) Code Review
Browse files

Merge "Don't attempt to stop the receive thread if we never started it." into mnc-dev

parents 968fc3ab 31e19f34
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -603,7 +603,10 @@ public class DhcpClient extends BaseDhcpStateMachine {
        @Override
        public void exit() {
            cancelOneshotTimeout();
            if (mReceiveThread != null) {
                mReceiveThread.halt();  // Also closes sockets.
                mReceiveThread = null;
            }
            clearDhcpState();
        }