Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(427)

Unified Diff: runtime/bin/stream_util.dart

Issue 9072004: Make sure to close when _BaseDataInputStream reaches the end (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/file_impl.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/stream_util.dart
diff --git a/runtime/bin/stream_util.dart b/runtime/bin/stream_util.dart
index 9175cce246badbede9a431c68fd9ce23011c7522..344b9e54c1286c145ef32e54b4a79e2841767a2f 100644
--- a/runtime/bin/stream_util.dart
+++ b/runtime/bin/stream_util.dart
@@ -82,6 +82,7 @@ class _BaseDataInputStream {
_scheduledDataCallback = new Timer(issueDataCallback, 0);
}
} else if (_streamMarkedClosed && !_closeCallbackCalled) {
+ _close();
_scheduledCloseCallback = new Timer(issueCloseCallback, 0);
_closeCallbackCalled = true;
}
« no previous file with comments | « runtime/bin/file_impl.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698