diff options
| author | lucaslin <lucaslin@google.com> | 2021-07-01 02:29:53 +0800 |
|---|---|---|
| committer | lucaslin <lucaslin@google.com> | 2021-07-01 02:29:53 +0800 |
| commit | 40d931c474ece86f501b4e9c49dd15fa5b62b995 (patch) | |
| tree | 5a6ffe6654bf2a78e072145f17726ea99dd23250 /tests/common/java/android/net/NetworkCapabilitiesTest.java | |
| parent | 4bb141787bfd8e3be9d0df80cccd25e6098db1c5 (diff) | |
Simplify the return condition in stop()
Previously, the return condition in stop() will check if the state
is STOPPING and the reason is ERROR_INVALID_NETWORK. The condition
is too restricted so that if another event is happened after binder
died, the exception will be thrown and crash the system.
Since calling stop() twice doesn't make sense, so relax the condition
of return when the state is STOPPING.
Bug: 182586681
Test: atest FrameworksNetTests
Change-Id: I2454c1c080d8954dd3785d4ac6e96fc4131fdb47
Diffstat (limited to 'tests/common/java/android/net/NetworkCapabilitiesTest.java')
0 files changed, 0 insertions, 0 deletions
