| 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.
|
|
|