| 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 08127d3c535c615b57b4b1b453fa684d22520aa1..e92de203e4b9cecf58a1f96f66af8cdeade2105f 100644
|
| --- a/sdk/lib/io/socket_stream_impl.dart
|
| +++ b/sdk/lib/io/socket_stream_impl.dart
|
| @@ -107,7 +107,7 @@ class _SocketOutputStream
|
| }
|
|
|
| void destroy() {
|
| - _socket.onWrite = null;
|
| + _socket._onWrite = null;
|
| _pendingWrites.clear();
|
| _socket.close();
|
| _closed = true;
|
| @@ -189,12 +189,12 @@ class _SocketOutputStream
|
| }
|
|
|
| bool _onSocketError(e) {
|
| - close();
|
| + destroy();
|
| if (_onError != null) {
|
| _onError(e);
|
| return true;
|
| } else {
|
| - return false;
|
| + throw e;
|
| }
|
| }
|
|
|
|
|