Index: sdk/lib/io/file_impl.dart |
diff --git a/sdk/lib/io/file_impl.dart b/sdk/lib/io/file_impl.dart |
index a262c21ca2a50afe9f519febe2c089e5c7bf1b80..1920c37f0c63ae4d7dd7c62b6686480e29602265 100644 |
--- a/sdk/lib/io/file_impl.dart |
+++ b/sdk/lib/io/file_impl.dart |
@@ -126,6 +126,7 @@ class _FileStream extends Stream<List<int>> { |
if (_position < 0) { |
_controller.addError(new RangeError("Bad start position: $_position")); |
_controller.close(); |
+ _closeCompleter.complete(); |
return; |
} |