mirror of
https://github.com/yattee/yattee.git
synced 2026-07-19 22:02:10 +00:00
completeMultiFileDownload captured an index via firstIndex, then awaited a detached file-size calculation. Another concurrently-completing download could mutate activeDownloads during that suspension, leaving the index stale and crashing in Array.remove(at:) with an out-of-bounds index. Remove the download by identity instead. Fixes a SIGTRAP seen in TestFlight build 261 (5 reports).