AssetManager ImplHandler: synchronized access in clearCache()

This commit is contained in:
shadowislord 2015-02-28 16:40:32 -05:00
parent a7765cfb63
commit ca497f458a

View File

@ -204,8 +204,10 @@ public class ImplHandler {
public void clearCache(){
// The iterator of the values collection is thread safe
for (AssetCache cache : classToCacheMap.values()){
cache.clearCache();
synchronized (classToCacheMap) {
for (AssetCache cache : classToCacheMap.values()){
cache.clearCache();
}
}
}