Index: pkg/barback/lib/src/file_pool.dart |
diff --git a/pkg/barback/lib/src/file_pool.dart b/pkg/barback/lib/src/file_pool.dart |
index 31d32ed04582b9e9b8cc5acb23cb19477c9ea555..dab94091ab6f071fac3d21f3c685680b0fc3dcb9 100644 |
--- a/pkg/barback/lib/src/file_pool.dart |
+++ b/pkg/barback/lib/src/file_pool.dart |
@@ -8,6 +8,8 @@ import 'dart:async'; |
import 'dart:convert'; |
import 'dart:io'; |
+import 'package:stack_trace/stack_trace.dart'; |
+ |
import 'pool.dart'; |
import 'utils.dart'; |
@@ -33,7 +35,7 @@ class FilePool { |
/// try again. |
Stream<List<int>> openRead(String path) { |
return futureStream(_pool.request().then((resource) { |
- return new File(path).openRead().transform( |
+ return Chain.track(new File(path).openRead()).transform( |
Siggi Cherem (dart-lang)
2013/12/09 18:58:34
I just noticed that this breaks polymer build: thi
|
new StreamTransformer.fromHandlers(handleDone: (sink) { |
sink.close(); |
resource.release(); |