Commit 506316b
committed
Snapshot arrays in ImagePrefetcher.handleComplete
Mitigates a crash from iterating over sources while they are mutating.
Example crash (details omitted):
```
0 App <redacted> Source
1 App <redacted> Source
2 App <redacted> Array._getElement
3 App <redacted> Sequence.compactMap
4 App <redacted> ImagePrefetcher.handleComplete (ImagePrefetcher.swift:379)
```1 parent f7ed0b8 commit 506316b
1 file changed
+13
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
373 | | - | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
374 | 381 | | |
375 | 382 | | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
381 | 388 | | |
382 | 389 | | |
383 | 390 | | |
| |||
0 commit comments