Crash Fix: Fix a serious bug in previous commit

Fixes commit 3874d65ec2, where code was
treating a dictionary like an array.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
Christopher Snowhill 2025-03-09 18:30:06 -07:00
parent a3268e6a95
commit dbee64e755

View file

@ -909,7 +909,7 @@ NSURL *_Nullable urlForPath(NSString *_Nullable path);
{
__block NSLock *blockLock = [[NSLock alloc] init];
__block NSMutableArray *blockInputs = [queueThisJob mutableCopy];
__block NSMutableArray *blockInputs = [[queueThisJob allKeys] mutableCopy];
for(size_t i = 0, j = [blockInputs count]; i < j; ++i) {
NSBlockOperation *op = [[NSBlockOperation alloc] init];
[op addExecutionBlock:^{