diff options
author | junyulai <junyulai@google.com> | 2019-08-30 16:44:45 +0800 |
---|---|---|
committer | Pavan Kumar M <rpavan@codeaurora.org> | 2019-10-18 09:25:19 +0000 |
commit | 24d6705dbc122e36ded35351e1bc845129322ea7 (patch) | |
tree | f14a5bc95fe50b038dc3b1726eaeaa8e244ce289 /tests/Codegen/src/com/android/codegentest/SampleDataClassTest.java | |
parent | 86397c80809f5159b527599349a6451da694e244 (diff) |
Fix LockdownVpnTracker deadlock when resetting legacy Always-On VPN
When resetting legacy Always-On VPN, the intent is handled by
main thread. And it will also initialize VPN shutdown process,
which will cause networkInfo changed event on
ConnectivityService internal thread. These two events need to
hold their corresponding lock and ask for the other one, which
causes the deadlock.
This patch move the event handling to the same thread to prevent
such deadlock, and cleanup some unused variables.
Change-Id: I5b656c0d0381acb4e33409a11f502db9b180296c
CRs-Fixed: 2548374
Fix: 139122208
Test: atest FrameworksNetTests, manual test
(cherry picked from commit 465088ed2f4591d08738b2306f213c5149b3484b)
Diffstat (limited to 'tests/Codegen/src/com/android/codegentest/SampleDataClassTest.java')
0 files changed, 0 insertions, 0 deletions