Commit 2cbce6a
authored
SNTConfigurator: skip override-file watcher when overrides disabled (#936)
The DEBUG-only override-file watcher was dispatched onto a global queue
unconditionally and held `self` in a polling loop. Under xctest's
`--runs_per_test`, the worker block survived bundle teardown and aborted
on `objc_msgSend` to a now-unloaded class, manifesting as a 1/25 flake
in DaemonConfigBundleTest.
Gate the dispatch on the same xctest+ENABLE_CONFIG_OVERRIDES check that
already short-circuits applyOverrides:, lifted into a shared
overridesEnabled helper so both call sites can't drift.1 parent 801d6c9 commit 2cbce6a
1 file changed
Lines changed: 22 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2221 | 2221 | | |
2222 | 2222 | | |
2223 | 2223 | | |
2224 | | - | |
2225 | | - | |
| 2224 | + | |
| 2225 | + | |
| 2226 | + | |
| 2227 | + | |
2226 | 2228 | | |
2227 | | - | |
2228 | | - | |
2229 | | - | |
2230 | | - | |
2231 | | - | |
2232 | | - | |
2233 | | - | |
2234 | | - | |
| 2229 | + | |
| 2230 | + | |
| 2231 | + | |
| 2232 | + | |
| 2233 | + | |
| 2234 | + | |
| 2235 | + | |
| 2236 | + | |
| 2237 | + | |
| 2238 | + | |
| 2239 | + | |
| 2240 | + | |
| 2241 | + | |
2235 | 2242 | | |
2236 | 2243 | | |
2237 | 2244 | | |
| |||
2251 | 2258 | | |
2252 | 2259 | | |
2253 | 2260 | | |
2254 | | - | |
2255 | 2261 | | |
2256 | 2262 | | |
2257 | 2263 | | |
| |||
2304 | 2310 | | |
2305 | 2311 | | |
2306 | 2312 | | |
2307 | | - | |
2308 | | - | |
2309 | | - | |
| 2313 | + | |
| 2314 | + | |
| 2315 | + | |
| 2316 | + | |
| 2317 | + | |
2310 | 2318 | | |
2311 | 2319 | | |
2312 | 2320 | | |
| |||
0 commit comments