The active task count was only being decremented after success. Once the number of failures reaches the maximumActiveDownloads, no more tasks were being started.
@@ -244,9 +244,10 @@
});
}
- [strongSelf safelyDecrementActiveTaskCount];
- [strongSelf safelyStartNextTaskIfNecessary];
+
+ [strongSelf safelyDecrementActiveTaskCount];
+ [strongSelf safelyStartNextTaskIfNecessary];
}];