From 87ba8699cbf7cc23a94de9b5906c43b5f322ea92 Mon Sep 17 00:00:00 2001 From: John McCutchan Date: Mon, 10 Oct 2016 15:25:01 -0700 Subject: [PATCH] Don't try to update the cache if locking is disabled (#6258) --- packages/flutter_tools/lib/src/cache.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/flutter_tools/lib/src/cache.dart b/packages/flutter_tools/lib/src/cache.dart index 17a46f95513..e69bf2e74d7 100644 --- a/packages/flutter_tools/lib/src/cache.dart +++ b/packages/flutter_tools/lib/src/cache.dart @@ -175,6 +175,8 @@ class Cache { } Future updateAll() async { + if (!_lockEnabled) + return null; MaterialFonts materialFonts = new MaterialFonts(cache); if (!materialFonts.isUpToDate()) await materialFonts.download();