Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(222)

Unified Diff: utils/pub/system_cache.dart

Issue 11830017: Fix ALL the pub tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}

Powered by Google App Engine
This is Rietveld 408576698