diff options
author | TreeHugger Robot <treehugger-gerrit@google.com> | 2020-04-30 07:51:43 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2020-04-30 07:51:43 +0000 |
commit | 2e16ff33e97bdbf9f7a30807c740860a1b5f147e (patch) | |
tree | c4b58d6a0a54971dcf64c88478c7b8e6f68e757c /src | |
parent | 2bfc0b3738fb4d4f08bfd50975c5b772f125fed2 (diff) | |
parent | 904eb826d0ce2f4ae8c3a1fa1abcd9adb0897765 (diff) |
Merge "Fix the potential double transition in DhcpState#enter" into rvc-dev
Diffstat (limited to 'src')
-rw-r--r-- | src/android/net/dhcp/DhcpClient.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/android/net/dhcp/DhcpClient.java b/src/android/net/dhcp/DhcpClient.java index c13dc18..6d48c0c 100644 --- a/src/android/net/dhcp/DhcpClient.java +++ b/src/android/net/dhcp/DhcpClient.java @@ -959,7 +959,9 @@ public class DhcpClient extends StateMachine { Log.e(TAG, "Fail to start DHCP Packet Handler"); } notifyFailure(); - transitionTo(mStoppedState); + // We cannot call transitionTo because a transition is still in progress. + // Instead, ensure that we process CMD_STOP_DHCP as soon as the transition is complete. + deferMessage(obtainMessage(CMD_STOP_DHCP)); } @Override |