Skip to content

Commit 87ba869

Browse files
Don't try to update the cache if locking is disabled (flutter#6258)
1 parent f11bb25 commit 87ba869

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/flutter_tools/lib/src/cache.dart

+2
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,8 @@ class Cache {
175175
}
176176

177177
Future<Null> updateAll() async {
178+
if (!_lockEnabled)
179+
return null;
178180
MaterialFonts materialFonts = new MaterialFonts(cache);
179181
if (!materialFonts.isUpToDate())
180182
await materialFonts.download();

0 commit comments

Comments
 (0)