Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix thread race in test-only XPC code. (#28041)
The clearRegistry block is touching various members of "self" that should only be touched on self.workQueue. But it was being called on whatever queue the client-provided stopReportsWithController method called its completion on. The fix is to dispatch to the queue that getProxyHandleWithCompletion is passed, which is in fact our work queue.
- Loading branch information