commit | 5ca769ef4abf89db957f1742e778b65653261982 | [log] [tgz] |
---|---|---|
author | Lucas Lin <lucaslin@google.com> | Thu Jul 01 01:55:56 2021 +0000 |
committer | Lucas Lin <lucaslin@google.com> | Thu Jul 01 06:57:53 2021 +0000 |
tree | 3a55281c8161e81e88d23260b64585b74e261735 | |
parent | 59f422694a34751a8ab0bfd0d9210535a4938b7e [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 Original-Change: https://android-review.googlesource.com/1729690 Merged-In: I2454c1c080d8954dd3785d4ac6e96fc4131fdb47 Change-Id: I2454c1c080d8954dd3785d4ac6e96fc4131fdb47