Commit 5f42b73
Add synchronized to make sure data correctness
Both mNetworkAgent and mConfig are mutable, add synchronized to
make sure the data correctness of those two vars when getNetId()
and getVpnConfig() are called.
Bug: 168576152
Test: atest FrameworkNetTests
atest CtsHostsideNetworkTests:HostsideVpnTests
Change-Id: I4133de84c904009b5fbf4208853773fc79fdd17f
Signed-off-by: DennySPb <dennyspb@gmail.com>1 parent ba84cac commit 5f42b73
1 file changed
Lines changed: 8 additions & 2 deletions
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1130 | 1130 | | |
1131 | 1131 | | |
1132 | 1132 | | |
1133 | | - | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
1134 | 1140 | | |
1135 | 1141 | | |
1136 | 1142 | | |
| |||
1708 | 1714 | | |
1709 | 1715 | | |
1710 | 1716 | | |
1711 | | - | |
| 1717 | + | |
1712 | 1718 | | |
1713 | 1719 | | |
1714 | 1720 | | |
| |||
0 commit comments