We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fe14c2f + 2159927 commit 995fe18Copy full SHA for 995fe18
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