diff options
author | Remi NGUYEN VAN <reminv@google.com> | 2019-06-24 19:57:11 +0900 |
---|---|---|
committer | Remi NGUYEN VAN <reminv@google.com> | 2019-06-24 23:28:06 +0900 |
commit | 6dcffa0c771120fe3f08e7ac3545252f89cffe95 (patch) | |
tree | 669c333c3e20f19f57202b426fc93c5aa66aa615 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | ff32698f0fc04303006143efc4d31966c968b50e (diff) |
Fix leak of DhcpServer on tethering stop error
Tactical, minimal fix to make sure the DhcpServer is stopped when
disabling tethering. The current code may throw if the interface is gone
when calling mNMService.setInterfaceConfig() on teardown. Make sure DHCP
is stopped regardless of what happens.
A longer term fix will be to figure out the right flow to teardown the
interface and avoid errors on setInterfaceConfig().
Bug: 124520692
Test: Manual: no more socket leaked when stopping USB tethering
Change-Id: Ib87d89a2e5fdb64b8f3dfae48d82c970f3ae6161
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions