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 c8ac90b commit e173865
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 e173865

Please sign in to comment.