Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS tv-casting-app: cancelDiscoveryCommissionersWork should be dispatched on the chipWorkQueue (not clientQueue) #175

Merged
merged 2 commits into from
Jul 6, 2023

Conversation

sharadb-amazon
Copy link
Owner

@sharadb-amazon sharadb-amazon commented Jun 28, 2023

Problem

This commit 2d5f022 introduced a way to time the discovery process out on the iOS tv-casting-app. However, it dispatched the cancelDiscoveryCommissionersWork on the clientQueue. This is incorrect, as that is interacting with the CastingServer.

Additionally, the cancelDiscoveryCommissionersWork needs to be cleaned up (canceled, nil'ed) when stopMatterServer is called.

Solution

Initialized the chipWorkQueue earlier, in the CastingServerBridge.init(), and dispatched cancelDiscoveryCommissionersWork on the chipWorkQueue instead.

Testing

Tested with the iOS tv-casting-app

@github-actions
Copy link

All PRs require an issue to be accepted, please link an issue or mention it in the body using #<issue_id>

@github-actions
Copy link

github-actions bot commented Jul 1, 2023

All PRs require an issue to be accepted, please link an issue or mention it in the body using #<issue_id>

@sharadb-amazon sharadb-amazon merged commit a2ae23a into v1.0.0-branch Jul 6, 2023
59 of 87 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants