| Index: runtime/bin/socket_stream_impl.dart
|
| diff --git a/runtime/bin/socket_stream_impl.dart b/runtime/bin/socket_stream_impl.dart
|
| index 952b4d1585b961d22e017e5c342b9b23edfed47e..101bf489854d8f44e7d4508584ae463db937e63c 100644
|
| --- a/runtime/bin/socket_stream_impl.dart
|
| +++ b/runtime/bin/socket_stream_impl.dart
|
| @@ -174,7 +174,11 @@ class _SocketOutputStream
|
| } else {
|
| if (_onNoPendingWrites != null) _onNoPendingWrites();
|
| }
|
| - if (_onNoPendingWrites == null) _socket._onWrite = null;
|
| + if (_onNoPendingWrites == null) {
|
| + _socket._onWrite = null;
|
| + } else {
|
| + _socket._onWrite = _onWrite;
|
| + }
|
| }
|
|
|
| void set onError(void callback(Exception e)) {
|
|
|