Merge "Don't attempt to stop the receive thread if we never started it." into mnc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
e022cb085f
@@ -603,7 +603,10 @@ public class DhcpClient extends BaseDhcpStateMachine {
|
|||||||
@Override
|
@Override
|
||||||
public void exit() {
|
public void exit() {
|
||||||
cancelOneshotTimeout();
|
cancelOneshotTimeout();
|
||||||
|
if (mReceiveThread != null) {
|
||||||
mReceiveThread.halt(); // Also closes sockets.
|
mReceiveThread.halt(); // Also closes sockets.
|
||||||
|
mReceiveThread = null;
|
||||||
|
}
|
||||||
clearDhcpState();
|
clearDhcpState();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user