Index: sdk/lib/io/mime_multipart_parser.dart |
diff --git a/sdk/lib/io/mime_multipart_parser.dart b/sdk/lib/io/mime_multipart_parser.dart |
index dc3f2069e8fb4377d685772cf0229ff1ae844973..1e3c5487c30c614490b5c684e1a4635df2cee610 100644 |
--- a/sdk/lib/io/mime_multipart_parser.dart |
+++ b/sdk/lib/io/mime_multipart_parser.dart |
@@ -101,6 +101,7 @@ class MimeMultipartTransformer |
Stream<MimeMultipart> bind(Stream<List<int>> stream) { |
_controller = new StreamController( |
+ sync: true, |
onPause: _pauseStream, |
onResume:_resumeStream, |
onCancel: () { |
@@ -293,6 +294,7 @@ class MimeMultipartTransformer |
case _HEADER_ENDING: |
_expect(byte, _CharCode.LF); |
_multipartController = new StreamController( |
+ sync: true, |
onPause: () { |
_pauseStream(); |
}, |