SyncSM8.1 always call transitionTo under processMessage
As state transitions always occur after a message has been processed, calling transitionTo only under processMessage makes the flow easier to understand and less error-prone. The risk of this change is very minimal since it is only about handling the error, but tethering will stop regardless. Test: atest TetheringTests Change-Id: I56c6cf6cc989464ee84a8333ac131afc808a3d95
Showing
- Tethering/src/android/net/ip/IpServer.java 14 additions, 2 deletionsTethering/src/android/net/ip/IpServer.java
- Tethering/src/com/android/networkstack/tethering/util/StateMachineShim.java 21 additions, 1 deletion...android/networkstack/tethering/util/StateMachineShim.java
- Tethering/tests/unit/src/com/android/networkstack/tethering/util/StateMachineShimTest.kt 7 additions, 0 deletions...droid/networkstack/tethering/util/StateMachineShimTest.kt
Loading
Please register or sign in to comment