Commit 04b8e11
committed
fix(android): deliver default-interface updates synchronously
checkDefaultInterfaceUpdate dispatched each updateDefaultInterface call
to GlobalScope.launch(Dispatchers.IO), so successive default-network
changes could be applied out of order, pinning a stale interface index
(Go side is last-writer-wins).
The golang/go#68760 stack workaround that the launch was duplicating is
already handled on the Go side (libbox SetupOptions.FixAndroidStack,
enabled by radiance), so delivering synchronously preserves the
network-change ordering that DefaultNetworkListener already guarantees.
Remove the now-unused Bugs.fixAndroidStack helper.1 parent 3a26323 commit 04b8e11
2 files changed
Lines changed: 7 additions & 32 deletions
File tree
- android/app/src/main/kotlin/org/getlantern/lantern
- service
- utils
Lines changed: 7 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | 7 | | |
11 | 8 | | |
12 | | - | |
13 | 9 | | |
14 | 10 | | |
15 | 11 | | |
| 12 | + | |
| 13 | + | |
16 | 14 | | |
17 | 15 | | |
18 | 16 | | |
| |||
84 | 82 | | |
85 | 83 | | |
86 | 84 | | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
94 | 88 | | |
95 | 89 | | |
96 | 90 | | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
| 91 | + | |
104 | 92 | | |
105 | 93 | | |
106 | 94 | | |
107 | | - | |
| 95 | + | |
Lines changed: 0 additions & 13 deletions
This file was deleted.
0 commit comments