| Index: utils/pub/system_cache.dart
|
| diff --git a/utils/pub/system_cache.dart b/utils/pub/system_cache.dart
|
| index 5b00dc301b6415bab3992b546f426860213de86b..fd2c6536122e1329e6e1170fb44aa71ff5c82b48 100644
|
| --- a/utils/pub/system_cache.dart
|
| +++ b/utils/pub/system_cache.dart
|
| @@ -72,8 +72,8 @@ class SystemCache {
|
| var pending = _pendingInstalls[id];
|
| if (pending != null) return pending;
|
|
|
| - var future = id.source.installToSystemCache(id);
|
| - always(future, () => _pendingInstalls.remove(id));
|
| + var future = id.source.installToSystemCache(id)
|
| + .whenComplete(() => _pendingInstalls.remove(id));
|
| _pendingInstalls[id] = future;
|
| return future;
|
| }
|
|
|