Index: sdk/lib/io/io_sink.dart |
diff --git a/sdk/lib/io/io_sink.dart b/sdk/lib/io/io_sink.dart |
index 8e8b71f2cf63468a47c03b0d8007e75db9183cbd..4dab40fd6e031ad458c66156aad0b2a2ab79ce2d 100644 |
--- a/sdk/lib/io/io_sink.dart |
+++ b/sdk/lib/io/io_sink.dart |
@@ -132,7 +132,7 @@ class _StreamSinkImpl<T> implements StreamSink<T> { |
throw new StateError("StreamSink is closed"); |
} |
if (_controllerInstance == null) { |
- _controllerInstance = new StreamController<T>(); |
+ _controllerInstance = new StreamController<T>(sync: true); |
_controllerCompleter = new Completer(); |
_target.addStream(_controller.stream) |
.then( |