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