-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make dynamic endpoint lifetime more similar to that of fixed endpoints.
Specific changes: 1) Ensure that dynamic endpoints land in initializeEndpoint (via emberAfEndpointEnableDisable) like fixed ones do (via emAfCallInits). 2) Ensure that clearing an dynamic endpoint properly disables it. This makes sure we call emberAfDeactivateClusterTick as needed and we can add other cleanup inside emberAfEndpointEnableDisable as it becomes useful. 3) Move the emberAfPluginDescriptorServerInitCallback calls for dymanic endpoints to the one choke-point in emberAfEndpointEnableDisable. This also fixes a pre-existing issue where disabling a fixed endpoint would not correctly update the descriptor bits. 4) In descriptor, check for enabled state before trying to actually touch the endpoint's data, not after we have tried to touch some of it.
- Loading branch information
1 parent
bc2d74b
commit 90289ff
Showing
2 changed files
with
16 additions
and
15 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