Skip to content

Commit

Permalink
Update src/app/clusters/scenes-server/scenes-server.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Boris Zbarsky <[email protected]>
  • Loading branch information
mpbreton and bzbarsky-apple authored Aug 9, 2023
1 parent 6565bda commit c17aa28
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/clusters/scenes-server/scenes-server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,8 @@ void ScenesServer::GroupWillBeRemoved(FabricIndex aFabricIx, EndpointId aEndpoin
chip::GroupId currentGroup;
Attributes::CurrentGroup::Get(aEndpointId, &currentGroup);

// Validate if the Current Group = RemovedGroup before invalidating the scene.
// If currentGroup is what is being removed, we can't possibly still have a valid scene,
// because the scene we have (if any) will also be removed.
if (aGroupId == currentGroup)
{
MakeSceneInvalid(aEndpointId);
Expand Down

0 comments on commit c17aa28

Please sign in to comment.