Don't try to update the cache if locking is disabled (#6258)

This commit is contained in:
John McCutchan 2016-10-10 15:25:01 -07:00 committed by GitHub
parent f11bb25b8f
commit 87ba8699cb

View File

@ -175,6 +175,8 @@ class Cache {
}
Future<Null> updateAll() async {
if (!_lockEnabled)
return null;
MaterialFonts materialFonts = new MaterialFonts(cache);
if (!materialFonts.isUpToDate())
await materialFonts.download();