| Index: runtime/bin/stream_util.dart
|
| diff --git a/runtime/bin/stream_util.dart b/runtime/bin/stream_util.dart
|
| index a20e72b1b1e92272ccc847ca9975ad9d2c3c6130..2a55cc43b831299e0a186180af559448049be3ac 100644
|
| --- a/runtime/bin/stream_util.dart
|
| +++ b/runtime/bin/stream_util.dart
|
| @@ -82,10 +82,8 @@ class _BaseDataInputStream {
|
| // close callback now if all data has been delivered.
|
| _streamMarkedClosed = true;
|
| if (available() == 0) {
|
| - if (_clientCloseHandler !== null) {
|
| - _clientCloseHandler();
|
| - _closeCallbackCalled = true;
|
| - }
|
| + _closeCallbackCalled = true;
|
| + if (_clientCloseHandler !== null) _clientCloseHandler();
|
| } else {
|
| _checkScheduleCallbacks();
|
| }
|
|
|