Crashes on DispatchGrouphere, here, and here. The error callback was getting called multiple times, since the fetchRecursively function creates multiple requests, each of which can throw an error. Since DispatchGroup.leave() was called in the error callback, it could get called more than once, or get called in addition to the success handler, causing the crash.
Fix two crashes.
DispatchGroup
here, here, and here. The error callback was getting called multiple times, since thefetchRecursively
function creates multiple requests, each of which can throw an error. SinceDispatchGroup.leave()
was called in the error callback, it could get called more than once, or get called in addition to the success handler, causing the crash.