Skip to content

Commit 6a954eb

Browse files
Fix to cleanup SessionResumptionStorage onFabricRemoved
1 parent bb8d059 commit 6a954eb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

examples/tv-casting-app/tv-casting-common/src/PersistenceManager.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,11 @@ void PersistenceManager::OnFabricRemoved(const FabricTable & fabricTable, Fabric
536536
}
537537

538538
WriteAllVideoPlayers(cachedVideoPlayers);
539+
540+
err = chip::Server::GetInstance().GetSessionResumptionStorage()->DeleteAll(fabricIndex);
541+
ChipLogProgress(AppServer,
542+
"PersistenceManager::OnFabricRemoved SessionResumptionStorage.DeleteAll(%d) status %" CHIP_ERROR_FORMAT,
543+
fabricIndex, err.Format());
539544
}
540545

541546
CHIP_ERROR PersistenceManager::PurgeVideoPlayerCache()

0 commit comments

Comments
 (0)