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

Release all active device handles on controller shutdown #3959

Merged
merged 1 commit into from
Nov 20, 2020

Conversation

pan-apple
Copy link
Contributor

Problem

DeviceController::Shutdown()/Init() does not release device handles. If the user calls Init followed by a Shutdown, it can have stale device handles from last session.

Summary of Changes

Release all device handles on shutdown and init. Also, reset the device state, instead of just marking it inactive.

@andy31415 andy31415 merged commit d6da789 into project-chip:master Nov 20, 2020
@pan-apple pan-apple deleted the release-device branch November 20, 2020 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants