Committed by
Ben Copsey
Change mechanism for calling delegates to be more thread safe
The previous mechanism can end up calling a delegate that has been removed by a setDelegate:nil, and hence may already be deallocated. Now we run a callback on the mainthread, which only dereferences the delegate/queue and selectors to be called when it runs on the main thread. The authenticationdelegate code is still using the old method. This should be looked at separately; it is slightly more complex as it needs to know if a delegate exists to be called.
Showing
3 changed files
with
13 additions
and
13 deletions
This diff is collapsed. Click to expand it.
-
Please register or login to post a comment