You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge pull request #425 from andraskadar/bugfix/requestMapAccess
Fix: Access requestMap only on the protected queue
Accessing the content of the requestMap asynchronously on any thread can lead to concurrency issues and crashes.
These changes refactor the code without introducing changes to the behaviour to make sure that even reading of the dictionary happens on the dedicated queue.
The root cause of this is that when a task has a delegate the same code is called twice, once in didFinishCollecting and once in didCompleteWithError. The didFinishCollecting was added because in iOS 16 and async network calls the didCompleteWithError was never called, but it ended up being called twice in cases like this.
0 commit comments