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

Unified Diff: runtime/bin/stream_util.dart

Issue 10914224: Fix http input stream double close problem. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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 | « no previous file | 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 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();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698