Skip to content

Commit

Permalink
Fix to cleanup SessionResumptionStorage onFabricRemoved
Browse files Browse the repository at this point in the history
  • Loading branch information
sharadb-amazon committed May 24, 2024
1 parent d7e3db5 commit c1c8710
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,11 @@ void PersistenceManager::OnFabricRemoved(const FabricTable & fabricTable, Fabric
}

WriteAllVideoPlayers(cachedVideoPlayers);

err = chip::Server::GetInstance().GetSessionResumptionStorage()->DeleteAll(fabricIndex);
ChipLogProgress(AppServer,
"PersistenceManager::OnFabricRemoved SessionResumptionStorage.DeleteAll(%d) status %" CHIP_ERROR_FORMAT,
fabricIndex, err.Format());
}

CHIP_ERROR PersistenceManager::PurgeVideoPlayerCache()
Expand Down

0 comments on commit c1c8710

Please sign in to comment.