We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 957ad44 + 2d57d86 commit 2159927Copy full SHA for 2159927
wifi/java/android/net/wifi/WifiStateMachine.java
@@ -3043,9 +3043,14 @@ public boolean processMessage(Message message) {
3043
deferMessage(message);
3044
}
3045
break;
3046
- /* Handle in DisconnectedState */
3047
case WifiMonitor.SUPPLICANT_STATE_CHANGE_EVENT:
+ /* If we get a SUPPLICANT_STATE_CHANGE_EVENT before NETWORK_DISCONNECTION_EVENT
3048
+ * we have missed the network disconnection, transition to mDisconnectedState
3049
+ * and handle the rest of the events there
3050
+ */
3051
3052
+ handleNetworkDisconnect();
3053
+ transitionTo(mDisconnectedState);
3054
3055
default:
3056
return NOT_HANDLED;
0 commit comments