This repository has been archived by the owner on Jul 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
framework/resource: call destroy if SetState manually called
Fixes #37 This calls Destroy properly on a resource if SetState is manually called. There is a big limitation here in that we don't know the exact proper destroy order to call, but argmapper gets us most likely correct due to state dependencies. And, as the comment in the code states, the ordering doesn't matter for any practical use case we have today since all manual SetStates today are single resources. Hopefully we switch everything to resource manager soon so this doesn't matter.
- Loading branch information
Showing
2 changed files
with
75 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters