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

Unified Diff: sdk/lib/io/socket_stream_impl.dart

Issue 11453006: Fix a number of HTTP issues (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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
Index: sdk/lib/io/socket_stream_impl.dart
diff --git a/sdk/lib/io/socket_stream_impl.dart b/sdk/lib/io/socket_stream_impl.dart
index a824ffd030f20769749d31f16b8aa9848f382420..08127d3c535c615b57b4b1b453fa684d22520aa1 100644
--- a/sdk/lib/io/socket_stream_impl.dart
+++ b/sdk/lib/io/socket_stream_impl.dart
@@ -90,10 +90,10 @@ class _SocketOutputStream
}
void close() {
- if (_closing && _closed) return;
+ if (_closing) return;
+ _closing = true;
if (!_pendingWrites.isEmpty) {
// Mark the socket for close when all data is written.
- _closing = true;
_socket._onWrite = _onWrite;
} else {
// Close the socket for writing.

Powered by Google App Engine
This is Rietveld 408576698