Index: runtime/bin/chunked_stream.dart |
diff --git a/runtime/bin/chunked_stream.dart b/runtime/bin/chunked_stream.dart |
index 04f0915f2f41f4b97041547bfed2a11ccf3601b0..f6462e91d93874847fca7c20dae03452b1ccdaf6 100644 |
--- a/runtime/bin/chunked_stream.dart |
+++ b/runtime/bin/chunked_stream.dart |
@@ -114,7 +114,7 @@ class _ChunkedInputStream implements ChunkedInputStream { |
(_bufferList.length > 0 && _inputClosed)) && |
_clientDataHandler !== null && |
_scheduledDataCallback == null) { |
- _scheduledDataCallback = new Timer(issueDataCallback, 0); |
+ _scheduledDataCallback = new Timer(0, issueDataCallback); |
} |
// Schedule close callback if no more data and input is closed. |
@@ -125,7 +125,7 @@ class _ChunkedInputStream implements ChunkedInputStream { |
if (_scheduledDataCallback != null) { |
_scheduledDataCallback.cancel(); |
} |
- _scheduledCloseCallback = new Timer(issueCloseCallback, 0); |
+ _scheduledCloseCallback = new Timer(0, issueCloseCallback); |
} |
} |