Index: sdk/lib/io/file_impl.dart |
diff --git a/sdk/lib/io/file_impl.dart b/sdk/lib/io/file_impl.dart |
index 0ba765cfb34a485ed91e21f7f778ea3d7f63dc95..e08b0403ad95a4ffc8293b1123c49658b084089d 100644 |
--- a/sdk/lib/io/file_impl.dart |
+++ b/sdk/lib/io/file_impl.dart |
@@ -94,7 +94,7 @@ class _FileStream extends Stream<List<int>> { |
}) |
.catchError((e) { |
if (!_unsubscribed) { |
- _controller.signalError(e); |
+ _controller.addError(e); |
_closeFile().then((_) { _controller.close(); }); |
_unsubscribed = true; |
} |
@@ -114,7 +114,7 @@ class _FileStream extends Stream<List<int>> { |
_readBlock(); |
}) |
.catchError((e) { |
- _controller.signalError(e); |
+ _controller.addError(e); |
_controller.close(); |
}); |
} |